1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __LINUX_TC_NAT_H 8 #define __LINUX_TC_NAT_H 9 #include <linux/pkt_cls.h> 10 #include <linux/types.h> 11 enum { 12 TCA_NAT_UNSPEC, 13 TCA_NAT_PARMS, 14 TCA_NAT_TM, 15 TCA_NAT_PAD, 16 __TCA_NAT_MAX 17 }; 18 #define TCA_NAT_MAX (__TCA_NAT_MAX - 1) 19 #define TCA_NAT_FLAG_EGRESS 1 20 struct tc_nat { 21 tc_gen; 22 __be32 old_addr; 23 __be32 new_addr; 24 __be32 mask; 25 __u32 flags; 26 }; 27 #endif 28