Message ID | 20230210184708.2172562-2-edumazet@google.com (mailing list archive) |
---|---|
State | Accepted |
Commit | dc68eaf2c29f410fb078fd6da8e56201d3282e0b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | ipv6: more drop reason | expand |
On 2/10/23 11:47 AM, Eric Dumazet wrote: > This drop reason can be used whenever an IPv6 packet > has a malformed extension header. > > Signed-off-by: Eric Dumazet <edumazet@google.com> > --- > include/net/dropreason.h | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: David Ahern <dsahern@kernel.org>
diff --git a/include/net/dropreason.h b/include/net/dropreason.h index 94bc3d5d880305a8c968a1801dabef83d995c567..6c41e535175cfba44f1f948305c5a1ebc5be9a18 100644 --- a/include/net/dropreason.h +++ b/include/net/dropreason.h @@ -72,6 +72,7 @@ FN(FRAG_REASM_TIMEOUT) \ FN(FRAG_TOO_FAR) \ FN(TCP_MINTTL) \ + FN(IPV6_BAD_EXTHDR) \ FNe(MAX) /** @@ -318,6 +319,8 @@ enum skb_drop_reason { * the threshold (IP_MINTTL or IPV6_MINHOPCOUNT). */ SKB_DROP_REASON_TCP_MINTTL, + /** @SKB_DROP_REASON_IPV6_BAD_EXTHDR: Bad IPv6 extension header. */ + SKB_DROP_REASON_IPV6_BAD_EXTHDR, /** * @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be * used as a real 'reason'
This drop reason can be used whenever an IPv6 packet has a malformed extension header. Signed-off-by: Eric Dumazet <edumazet@google.com> --- include/net/dropreason.h | 3 +++ 1 file changed, 3 insertions(+)