diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-10 19:47:05 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-14 04:55:32 +0100 |
commit | dc68eaf2c29f410fb078fd6da8e56201d3282e0b (patch) | |
tree | 0817c483d8527d51a92327148c0d9b4bc47a4de0 /include/net | |
parent | net: stmmac: dwc-qos: Make struct dwc_eth_dwmac_data::remove return void (diff) | |
download | linux-dc68eaf2c29f410fb078fd6da8e56201d3282e0b.tar.xz linux-dc68eaf2c29f410fb078fd6da8e56201d3282e0b.zip |
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 <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dropreason.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/dropreason.h b/include/net/dropreason.h index 94bc3d5d8803..6c41e535175c 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' |