Skip to content

Commit dc68eaf

Browse files
edumazetkuba-moo
authored andcommitted
net: dropreason: add SKB_DROP_REASON_IPV6_BAD_EXTHDR
This drop reason can be used whenever an IPv6 packet has a malformed extension header. Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1a940b0 commit dc68eaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/net/dropreason.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
FN(FRAG_REASM_TIMEOUT) \
7373
FN(FRAG_TOO_FAR) \
7474
FN(TCP_MINTTL) \
75+
FN(IPV6_BAD_EXTHDR) \
7576
FNe(MAX)
7677

7778
/**
@@ -318,6 +319,8 @@ enum skb_drop_reason {
318319
* the threshold (IP_MINTTL or IPV6_MINHOPCOUNT).
319320
*/
320321
SKB_DROP_REASON_TCP_MINTTL,
322+
/** @SKB_DROP_REASON_IPV6_BAD_EXTHDR: Bad IPv6 extension header. */
323+
SKB_DROP_REASON_IPV6_BAD_EXTHDR,
321324
/**
322325
* @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be
323326
* used as a real 'reason'

0 commit comments

Comments
 (0)