Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __UAPI_TC_CT_H
0003 #define __UAPI_TC_CT_H
0004 
0005 #include <linux/types.h>
0006 #include <linux/pkt_cls.h>
0007 
0008 enum {
0009     TCA_CT_UNSPEC,
0010     TCA_CT_PARMS,
0011     TCA_CT_TM,
0012     TCA_CT_ACTION,      /* u16 */
0013     TCA_CT_ZONE,        /* u16 */
0014     TCA_CT_MARK,        /* u32 */
0015     TCA_CT_MARK_MASK,   /* u32 */
0016     TCA_CT_LABELS,      /* u128 */
0017     TCA_CT_LABELS_MASK, /* u128 */
0018     TCA_CT_NAT_IPV4_MIN,    /* be32 */
0019     TCA_CT_NAT_IPV4_MAX,    /* be32 */
0020     TCA_CT_NAT_IPV6_MIN,    /* struct in6_addr */
0021     TCA_CT_NAT_IPV6_MAX,    /* struct in6_addr */
0022     TCA_CT_NAT_PORT_MIN,    /* be16 */
0023     TCA_CT_NAT_PORT_MAX,    /* be16 */
0024     TCA_CT_PAD,
0025     __TCA_CT_MAX
0026 };
0027 
0028 #define TCA_CT_MAX (__TCA_CT_MAX - 1)
0029 
0030 #define TCA_CT_ACT_COMMIT   (1 << 0)
0031 #define TCA_CT_ACT_FORCE    (1 << 1)
0032 #define TCA_CT_ACT_CLEAR    (1 << 2)
0033 #define TCA_CT_ACT_NAT      (1 << 3)
0034 #define TCA_CT_ACT_NAT_SRC  (1 << 4)
0035 #define TCA_CT_ACT_NAT_DST  (1 << 5)
0036 
0037 struct tc_ct {
0038     tc_gen;
0039 };
0040 
0041 #endif /* __UAPI_TC_CT_H */