1 #ifndef __NET_IP6_FW_H
2 #define __NET_IP6_FW_H
3
4 #define IP6_FW_LISTHEAD 0x1000
5 #define IP6_FW_ACCEPT 0x0001
6 #define IP6_FW_REJECT 0x0002
7
8 #define IP6_FW_DEBUG 2
9
10 #define IP6_FW_MSG_ADD 1
11 #define IP6_FW_MSG_DEL 2
12 #define IP6_FW_MSG_REPORT 3
13
14
15 /*
16 * Fast "hack" user interface
17 */
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;
31
32 unsigned long data;
33
34 int icmp_type;
35 } u;
36
37 int msg_len;
38 };
39
40 #ifdef __KERNEL__
41
42 #include <net/flow.h>
43
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;
50 };
51
52 #endif
53
54 #endif
55
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.