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
,
42 CTA_SECMARK
, /* obsolete */
48 #define CTA_MAX (__CTA_MAX - 1)
56 #define CTA_TUPLE_MAX (__CTA_TUPLE_MAX - 1)
66 #define CTA_IP_MAX (__CTA_IP_MAX - 1)
77 CTA_PROTO_ICMPV6_TYPE
,
78 CTA_PROTO_ICMPV6_CODE
,
81 #define CTA_PROTO_MAX (__CTA_PROTO_MAX - 1)
83 enum ctattr_protoinfo
{
90 #define CTA_PROTOINFO_MAX (__CTA_PROTOINFO_MAX - 1)
92 enum ctattr_protoinfo_tcp
{
93 CTA_PROTOINFO_TCP_UNSPEC
,
94 CTA_PROTOINFO_TCP_STATE
,
95 CTA_PROTOINFO_TCP_WSCALE_ORIGINAL
,
96 CTA_PROTOINFO_TCP_WSCALE_REPLY
,
97 CTA_PROTOINFO_TCP_FLAGS_ORIGINAL
,
98 CTA_PROTOINFO_TCP_FLAGS_REPLY
,
99 __CTA_PROTOINFO_TCP_MAX
101 #define CTA_PROTOINFO_TCP_MAX (__CTA_PROTOINFO_TCP_MAX - 1)
103 enum ctattr_protoinfo_dccp
{
104 CTA_PROTOINFO_DCCP_UNSPEC
,
105 CTA_PROTOINFO_DCCP_STATE
,
106 CTA_PROTOINFO_DCCP_ROLE
,
107 CTA_PROTOINFO_DCCP_HANDSHAKE_SEQ
,
108 __CTA_PROTOINFO_DCCP_MAX
,
110 #define CTA_PROTOINFO_DCCP_MAX (__CTA_PROTOINFO_DCCP_MAX - 1)
112 enum ctattr_protoinfo_sctp
{
113 CTA_PROTOINFO_SCTP_UNSPEC
,
114 CTA_PROTOINFO_SCTP_STATE
,
115 CTA_PROTOINFO_SCTP_VTAG_ORIGINAL
,
116 CTA_PROTOINFO_SCTP_VTAG_REPLY
,
117 __CTA_PROTOINFO_SCTP_MAX
119 #define CTA_PROTOINFO_SCTP_MAX (__CTA_PROTOINFO_SCTP_MAX - 1)
121 enum ctattr_counters
{
123 CTA_COUNTERS_PACKETS
, /* 64bit counters */
124 CTA_COUNTERS_BYTES
, /* 64bit counters */
125 CTA_COUNTERS32_PACKETS
, /* old 32bit counters, unused */
126 CTA_COUNTERS32_BYTES
, /* old 32bit counters, unused */
129 #define CTA_COUNTERS_MAX (__CTA_COUNTERS_MAX - 1)
132 CTA_TIMESTAMP_UNSPEC
,
137 #define CTA_TIMESTAMP_MAX (__CTA_TIMESTAMP_MAX - 1)
146 #define CTA_NAT_MAX (__CTA_NAT_MAX - 1)
148 enum ctattr_protonat
{
150 CTA_PROTONAT_PORT_MIN
,
151 CTA_PROTONAT_PORT_MAX
,
154 #define CTA_PROTONAT_MAX (__CTA_PROTONAT_MAX - 1)
158 CTA_NAT_SEQ_CORRECTION_POS
,
159 CTA_NAT_SEQ_OFFSET_BEFORE
,
160 CTA_NAT_SEQ_OFFSET_AFTER
,
163 #define CTA_NAT_SEQ_MAX (__CTA_NAT_SEQ_MAX - 1)
172 CTA_EXPECT_HELP_NAME
,
177 #define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)
184 #define CTA_HELP_MAX (__CTA_HELP_MAX - 1)
191 #define CTA_SECCTX_MAX (__CTA_SECCTX_MAX - 1)
193 #endif /* _IPCONNTRACK_NETLINK_H */