diff options
| author | root <root@(null).(none)> | 2009-05-03 17:20:00 +0200 |
|---|---|---|
| committer | root <root@(null).(none)> | 2009-05-03 17:20:00 +0200 |
| commit | e0faf22f31c48fb27b43c1825897d26e58feafc4 (patch) | |
| tree | 65a09372b31e08a3a865bd0a88cd2718bafcd643 /pfinet.old/linux-src/include/net/ip6_fw.h | |
This is my initial working version.
There is a bug in boot in this version: subhurd sometimes cannot boot.
Diffstat (limited to 'pfinet.old/linux-src/include/net/ip6_fw.h')
| -rw-r--r-- | pfinet.old/linux-src/include/net/ip6_fw.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pfinet.old/linux-src/include/net/ip6_fw.h b/pfinet.old/linux-src/include/net/ip6_fw.h new file mode 100644 index 00000000..7866273d --- /dev/null +++ b/pfinet.old/linux-src/include/net/ip6_fw.h @@ -0,0 +1,54 @@ +#ifndef __NET_IP6_FW_H +#define __NET_IP6_FW_H + +#define IP6_FW_LISTHEAD 0x1000 +#define IP6_FW_ACCEPT 0x0001 +#define IP6_FW_REJECT 0x0002 + +#define IP6_FW_DEBUG 2 + +#define IP6_FW_MSG_ADD 1 +#define IP6_FW_MSG_DEL 2 +#define IP6_FW_MSG_REPORT 3 + + +/* + * Fast "hack" user interface + */ +struct ip6_fw_msg { + struct in6_addr dst; + struct in6_addr src; + int dst_len; + int src_len; + int action; + int policy; + int proto; + union { + struct { + __u16 sport; + __u16 dport; + } transp; + + unsigned long data; + + int icmp_type; + } u; + + int msg_len; +}; + +#ifdef __KERNEL__ + +#include <net/flow.h> + +struct ip6_fw_rule { + struct flow_rule flowr; + struct ip6_fw_rule *next; + struct ip6_fw_rule *prev; + struct flowi info; + unsigned long policy; +}; + +#endif + +#endif |
