1 #ifndef _IPCONNTRACK_NETLINK_H
2 #define _IPCONNTRACK_NETLINK_H
3 #include <linux/netfilter/nfnetlink.h>
9 IPCTNL_MSG_CT_GET_CTRZERO,
14 enum ctnl_exp_msg_types {
17 IPCTNL_MSG_EXP_DELETE,
31 #define CTA_NAT CTA_NAT_SRC /* backwards compatibility */
41 CTA_NAT_SEQ_ADJ_REPLY,
45 #define CTA_MAX (__CTA_MAX - 1)
53 #define CTA_TUPLE_MAX (__CTA_TUPLE_MAX - 1)
63 #define CTA_IP_MAX (__CTA_IP_MAX - 1)
74 CTA_PROTO_ICMPV6_TYPE,
75 CTA_PROTO_ICMPV6_CODE,
78 #define CTA_PROTO_MAX (__CTA_PROTO_MAX - 1)
80 enum ctattr_protoinfo {
87 #define CTA_PROTOINFO_MAX (__CTA_PROTOINFO_MAX - 1)
89 enum ctattr_protoinfo_tcp {
90 CTA_PROTOINFO_TCP_UNSPEC,
91 CTA_PROTOINFO_TCP_STATE,
92 CTA_PROTOINFO_TCP_WSCALE_ORIGINAL,
93 CTA_PROTOINFO_TCP_WSCALE_REPLY,
94 CTA_PROTOINFO_TCP_FLAGS_ORIGINAL,
95 CTA_PROTOINFO_TCP_FLAGS_REPLY,
96 __CTA_PROTOINFO_TCP_MAX
98 #define CTA_PROTOINFO_TCP_MAX (__CTA_PROTOINFO_TCP_MAX - 1)
100 enum ctattr_protoinfo_dccp {
101 CTA_PROTOINFO_DCCP_UNSPEC,
102 CTA_PROTOINFO_DCCP_STATE,
103 __CTA_PROTOINFO_DCCP_MAX,
105 #define CTA_PROTOINFO_DCCP_MAX (__CTA_PROTOINFO_DCCP_MAX - 1)
107 enum ctattr_protoinfo_sctp {
108 CTA_PROTOINFO_SCTP_UNSPEC,
109 CTA_PROTOINFO_SCTP_STATE,
110 CTA_PROTOINFO_SCTP_VTAG_ORIGINAL,
111 CTA_PROTOINFO_SCTP_VTAG_REPLY,
112 __CTA_PROTOINFO_SCTP_MAX
114 #define CTA_PROTOINFO_SCTP_MAX (__CTA_PROTOINFO_SCTP_MAX - 1)
116 enum ctattr_counters {
118 CTA_COUNTERS_PACKETS, /* 64bit counters */
119 CTA_COUNTERS_BYTES, /* 64bit counters */
120 CTA_COUNTERS32_PACKETS, /* old 32bit counters, unused */
121 CTA_COUNTERS32_BYTES, /* old 32bit counters, unused */
124 #define CTA_COUNTERS_MAX (__CTA_COUNTERS_MAX - 1)
133 #define CTA_NAT_MAX (__CTA_NAT_MAX - 1)
135 enum ctattr_protonat {
137 CTA_PROTONAT_PORT_MIN,
138 CTA_PROTONAT_PORT_MAX,
141 #define CTA_PROTONAT_MAX (__CTA_PROTONAT_MAX - 1)
144 CTA_NAT_SEQ_CORRECTION_POS,
145 CTA_NAT_SEQ_OFFSET_BEFORE,
146 CTA_NAT_SEQ_OFFSET_AFTER,
149 #define CTA_NAT_SEQ_MAX (__CTA_NAT_SEQ_MAX - 1)
158 CTA_EXPECT_HELP_NAME,
161 #define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)
168 #define CTA_HELP_MAX (__CTA_HELP_MAX - 1)
170 #endif /* _IPCONNTRACK_NETLINK_H */