diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_fragment.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 9e1458d3e465..0ad6035f6366 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -81,12 +81,10 @@ struct ipq { | |||
81 | * We want to check ECN values of all fragments, do detect invalid combinations. | 81 | * We want to check ECN values of all fragments, do detect invalid combinations. |
82 | * In ipq->ecn, we store the OR value of each ip4_frag_ecn() fragment value. | 82 | * In ipq->ecn, we store the OR value of each ip4_frag_ecn() fragment value. |
83 | */ | 83 | */ |
84 | enum { | 84 | #define IPFRAG_ECN_NOT_ECT 0x01 /* one frag had ECN_NOT_ECT */ |
85 | IPFRAG_ECN_NOT_ECT = 0x01, /* one frag had ECN_NOT_ECT */ | 85 | #define IPFRAG_ECN_ECT_1 0x02 /* one frag had ECN_ECT_1 */ |
86 | IPFRAG_ECN_ECT_1 = 0x02, /* one frag had ECN_ECT_1 */ | 86 | #define IPFRAG_ECN_ECT_0 0x04 /* one frag had ECN_ECT_0 */ |
87 | IPFRAG_ECN_ECT_0 = 0x04, /* one frag had ECN_ECT_0 */ | 87 | #define IPFRAG_ECN_CE 0x08 /* one frag had ECN_CE */ |
88 | IPFRAG_ECN_CE = 0x08, /* one frag had ECN_CE */ | ||
89 | }; | ||
90 | 88 | ||
91 | static inline u8 ip4_frag_ecn(u8 tos) | 89 | static inline u8 ip4_frag_ecn(u8 tos) |
92 | { | 90 | { |