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_CSUM_H 8 #define __LINUX_TC_CSUM_H 9 #include <linux/types.h> 10 #include <linux/pkt_cls.h> 11 enum { 12 TCA_CSUM_UNSPEC, 13 TCA_CSUM_PARMS, 14 TCA_CSUM_TM, 15 TCA_CSUM_PAD, 16 __TCA_CSUM_MAX 17 }; 18 #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) 19 enum { 20 TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1, 21 TCA_CSUM_UPDATE_FLAG_ICMP = 2, 22 TCA_CSUM_UPDATE_FLAG_IGMP = 4, 23 TCA_CSUM_UPDATE_FLAG_TCP = 8, 24 TCA_CSUM_UPDATE_FLAG_UDP = 16, 25 TCA_CSUM_UPDATE_FLAG_UDPLITE = 32, 26 TCA_CSUM_UPDATE_FLAG_SCTP = 64, 27 }; 28 struct tc_csum { 29 tc_gen; 30 __u32 update_flags; 31 }; 32 #endif 33