diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-16 16:28:40 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-20 08:54:23 +0000 |
commit | 784d4477f07b930df73bc77e842e03f1dacb83aa (patch) | |
tree | 1e27c24768d6f98d776565fcbb4b9a00d97738e4 /include/net/dropreason.h | |
parent | ec993edf05ca4eee5878edf51fdb5ffa2b1decc3 (diff) | |
download | linux-stable-784d4477f07b930df73bc77e842e03f1dacb83aa.tar.gz linux-stable-784d4477f07b930df73bc77e842e03f1dacb83aa.tar.bz2 linux-stable-784d4477f07b930df73bc77e842e03f1dacb83aa.zip |
ipv6: icmp6: add SKB_DROP_REASON_IPV6_NDISC_BAD_OPTIONS
This is a generic drop reason for any error detected
in ndisc_parse_options().
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dropreason.h')
-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 ef3f65d135d3..239a5c0ea83e 100644 --- a/include/net/dropreason.h +++ b/include/net/dropreason.h @@ -76,6 +76,7 @@ FN(IPV6_NDISC_FRAG) \ FN(IPV6_NDISC_HOP_LIMIT) \ FN(IPV6_NDISC_BAD_CODE) \ + FN(IPV6_NDISC_BAD_OPTIONS) \ FNe(MAX) /** @@ -330,6 +331,8 @@ enum skb_drop_reason { SKB_DROP_REASON_IPV6_NDISC_HOP_LIMIT, /** @SKB_DROP_REASON_IPV6_NDISC_BAD_CODE: invalid NDISC icmp6 code. */ SKB_DROP_REASON_IPV6_NDISC_BAD_CODE, + /** @SKB_DROP_REASON_IPV6_NDISC_BAD_OPTIONS: invalid NDISC options. */ + SKB_DROP_REASON_IPV6_NDISC_BAD_OPTIONS, /** * @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be * used as a real 'reason' |