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
{
85 #define CTA_PROTOINFO_MAX (__CTA_PROTOINFO_MAX - 1)
87 enum ctattr_protoinfo_tcp
{
88 CTA_PROTOINFO_TCP_UNSPEC
,
89 CTA_PROTOINFO_TCP_STATE
,
90 CTA_PROTOINFO_TCP_WSCALE_ORIGINAL
,
91 CTA_PROTOINFO_TCP_WSCALE_REPLY
,
92 CTA_PROTOINFO_TCP_FLAGS_ORIGINAL
,
93 CTA_PROTOINFO_TCP_FLAGS_REPLY
,
94 __CTA_PROTOINFO_TCP_MAX
96 #define CTA_PROTOINFO_TCP_MAX (__CTA_PROTOINFO_TCP_MAX - 1)
98 enum ctattr_counters
{
100 CTA_COUNTERS_PACKETS
, /* old 64bit counters */
101 CTA_COUNTERS_BYTES
, /* old 64bit counters */
102 CTA_COUNTERS32_PACKETS
,
103 CTA_COUNTERS32_BYTES
,
106 #define CTA_COUNTERS_MAX (__CTA_COUNTERS_MAX - 1)
115 #define CTA_NAT_MAX (__CTA_NAT_MAX - 1)
117 enum ctattr_protonat
{
119 CTA_PROTONAT_PORT_MIN
,
120 CTA_PROTONAT_PORT_MAX
,
123 #define CTA_PROTONAT_MAX (__CTA_PROTONAT_MAX - 1)
126 CTA_NAT_SEQ_CORRECTION_POS
,
127 CTA_NAT_SEQ_OFFSET_BEFORE
,
128 CTA_NAT_SEQ_OFFSET_AFTER
,
131 #define CTA_NAT_SEQ_MAX (__CTA_NAT_SEQ_MAX - 1)
140 CTA_EXPECT_HELP_NAME
,
143 #define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)
150 #define CTA_HELP_MAX (__CTA_HELP_MAX - 1)
152 #endif /* _IPCONNTRACK_NETLINK_H */