Grégoire Baron | eb4d406 | 2010-08-18 13:10:35 +0000 | [diff] [blame] | 1 | #ifndef __LINUX_TC_CSUM_H |
| 2 | #define __LINUX_TC_CSUM_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <linux/pkt_cls.h> |
| 6 | |
| 7 | #define TCA_ACT_CSUM 16 |
| 8 | |
| 9 | enum { |
| 10 | TCA_CSUM_UNSPEC, |
| 11 | TCA_CSUM_PARMS, |
| 12 | TCA_CSUM_TM, |
Nicolas Dichtel | 9854518 | 2016-04-26 10:06:18 +0200 | [diff] [blame] | 13 | TCA_CSUM_PAD, |
Grégoire Baron | eb4d406 | 2010-08-18 13:10:35 +0000 | [diff] [blame] | 14 | __TCA_CSUM_MAX |
| 15 | }; |
| 16 | #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) |
| 17 | |
| 18 | enum { |
| 19 | TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1, |
| 20 | TCA_CSUM_UPDATE_FLAG_ICMP = 2, |
| 21 | TCA_CSUM_UPDATE_FLAG_IGMP = 4, |
| 22 | TCA_CSUM_UPDATE_FLAG_TCP = 8, |
| 23 | TCA_CSUM_UPDATE_FLAG_UDP = 16, |
Davide Caratti | c008b33 | 2017-01-09 11:24:21 +0100 | [diff] [blame^] | 24 | TCA_CSUM_UPDATE_FLAG_UDPLITE = 32, |
| 25 | TCA_CSUM_UPDATE_FLAG_SCTP = 64, |
Grégoire Baron | eb4d406 | 2010-08-18 13:10:35 +0000 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | struct tc_csum { |
| 29 | tc_gen; |
| 30 | |
| 31 | __u32 update_flags; |
| 32 | }; |
| 33 | |
| 34 | #endif /* __LINUX_TC_CSUM_H */ |