Linux v2.6.15-rc6
[pohmelfs.git] / include / linux / netfilter / nfnetlink_conntrack.h
blob116fcaced909f3ed78c87688c2065ce23640bcd8
1 #ifndef _IPCONNTRACK_NETLINK_H
2 #define _IPCONNTRACK_NETLINK_H
3 #include <linux/netfilter/nfnetlink.h>
5 enum cntl_msg_types {
6 IPCTNL_MSG_CT_NEW,
7 IPCTNL_MSG_CT_GET,
8 IPCTNL_MSG_CT_DELETE,
9 IPCTNL_MSG_CT_GET_CTRZERO,
11 IPCTNL_MSG_MAX
14 enum ctnl_exp_msg_types {
15 IPCTNL_MSG_EXP_NEW,
16 IPCTNL_MSG_EXP_GET,
17 IPCTNL_MSG_EXP_DELETE,
19 IPCTNL_MSG_EXP_MAX
23 enum ctattr_type {
24 CTA_UNSPEC,
25 CTA_TUPLE_ORIG,
26 CTA_TUPLE_REPLY,
27 CTA_STATUS,
28 CTA_PROTOINFO,
29 CTA_HELP,
30 CTA_NAT,
31 CTA_TIMEOUT,
32 CTA_MARK,
33 CTA_COUNTERS_ORIG,
34 CTA_COUNTERS_REPLY,
35 CTA_USE,
36 CTA_ID,
37 __CTA_MAX
39 #define CTA_MAX (__CTA_MAX - 1)
41 enum ctattr_tuple {
42 CTA_TUPLE_UNSPEC,
43 CTA_TUPLE_IP,
44 CTA_TUPLE_PROTO,
45 __CTA_TUPLE_MAX
47 #define CTA_TUPLE_MAX (__CTA_TUPLE_MAX - 1)
49 enum ctattr_ip {
50 CTA_IP_UNSPEC,
51 CTA_IP_V4_SRC,
52 CTA_IP_V4_DST,
53 CTA_IP_V6_SRC,
54 CTA_IP_V6_DST,
55 __CTA_IP_MAX
57 #define CTA_IP_MAX (__CTA_IP_MAX - 1)
59 enum ctattr_l4proto {
60 CTA_PROTO_UNSPEC,
61 CTA_PROTO_NUM,
62 CTA_PROTO_SRC_PORT,
63 CTA_PROTO_DST_PORT,
64 CTA_PROTO_ICMP_ID,
65 CTA_PROTO_ICMP_TYPE,
66 CTA_PROTO_ICMP_CODE,
67 __CTA_PROTO_MAX
69 #define CTA_PROTO_MAX (__CTA_PROTO_MAX - 1)
71 enum ctattr_protoinfo {
72 CTA_PROTOINFO_UNSPEC,
73 CTA_PROTOINFO_TCP,
74 __CTA_PROTOINFO_MAX
76 #define CTA_PROTOINFO_MAX (__CTA_PROTOINFO_MAX - 1)
78 enum ctattr_protoinfo_tcp {
79 CTA_PROTOINFO_TCP_UNSPEC,
80 CTA_PROTOINFO_TCP_STATE,
81 __CTA_PROTOINFO_TCP_MAX
83 #define CTA_PROTOINFO_TCP_MAX (__CTA_PROTOINFO_TCP_MAX - 1)
85 enum ctattr_counters {
86 CTA_COUNTERS_UNSPEC,
87 CTA_COUNTERS_PACKETS, /* old 64bit counters */
88 CTA_COUNTERS_BYTES, /* old 64bit counters */
89 CTA_COUNTERS32_PACKETS,
90 CTA_COUNTERS32_BYTES,
91 __CTA_COUNTERS_MAX
93 #define CTA_COUNTERS_MAX (__CTA_COUNTERS_MAX - 1)
95 enum ctattr_nat {
96 CTA_NAT_UNSPEC,
97 CTA_NAT_MINIP,
98 CTA_NAT_MAXIP,
99 CTA_NAT_PROTO,
100 __CTA_NAT_MAX
102 #define CTA_NAT_MAX (__CTA_NAT_MAX - 1)
104 enum ctattr_protonat {
105 CTA_PROTONAT_UNSPEC,
106 CTA_PROTONAT_PORT_MIN,
107 CTA_PROTONAT_PORT_MAX,
108 __CTA_PROTONAT_MAX
110 #define CTA_PROTONAT_MAX (__CTA_PROTONAT_MAX - 1)
112 enum ctattr_expect {
113 CTA_EXPECT_UNSPEC,
114 CTA_EXPECT_MASTER,
115 CTA_EXPECT_TUPLE,
116 CTA_EXPECT_MASK,
117 CTA_EXPECT_TIMEOUT,
118 CTA_EXPECT_ID,
119 CTA_EXPECT_HELP_NAME,
120 __CTA_EXPECT_MAX
122 #define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)
124 enum ctattr_help {
125 CTA_HELP_UNSPEC,
126 CTA_HELP_NAME,
127 __CTA_HELP_MAX
129 #define CTA_HELP_MAX (__CTA_HELP_MAX - 1)
131 #define CTA_HELP_MAXNAMESIZE 32
133 #endif /* _IPCONNTRACK_NETLINK_H */