* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / net / ip6_fw.h
blob7866273d3d56d0bed28731727e72ef77cf35bed0
1 #ifndef __NET_IP6_FW_H
2 #define __NET_IP6_FW_H
4 #define IP6_FW_LISTHEAD 0x1000
5 #define IP6_FW_ACCEPT 0x0001
6 #define IP6_FW_REJECT 0x0002
8 #define IP6_FW_DEBUG 2
10 #define IP6_FW_MSG_ADD 1
11 #define IP6_FW_MSG_DEL 2
12 #define IP6_FW_MSG_REPORT 3
16 * Fast "hack" user interface
18 struct ip6_fw_msg {
19 struct in6_addr dst;
20 struct in6_addr src;
21 int dst_len;
22 int src_len;
23 int action;
24 int policy;
25 int proto;
26 union {
27 struct {
28 __u16 sport;
29 __u16 dport;
30 } transp;
32 unsigned long data;
34 int icmp_type;
35 } u;
37 int msg_len;
40 #ifdef __KERNEL__
42 #include <net/flow.h>
44 struct ip6_fw_rule {
45 struct flow_rule flowr;
46 struct ip6_fw_rule *next;
47 struct ip6_fw_rule *prev;
48 struct flowi info;
49 unsigned long policy;
52 #endif
54 #endif