diff options
| author | David S. Miller <[email protected]> | 2023-02-20 08:54:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-02-20 08:54:24 +0000 |
| commit | cf06eef0c86bd2088bafecb211e06a2855b4c327 (patch) | |
| tree | 5ad08fa6db860df81a5d89216b704328765f5675 /include | |
| parent | dd1b527831a3ed659afa01b672d8e1f7e6ca95a5 (diff) | |
| parent | ac03694bc009703022cf45a9c90675d5505c584c (diff) | |
Merge branch 'icmp6-drop-reason'
Eric Dumazet says:
====================
ipv6: icmp6: better drop reason support
This series aims to have more precise drop reason reports for icmp6.
This should reduce false positives on most usual cases.
This can be extended as needed later.
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dropreason.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/dropreason.h b/include/net/dropreason.h index ef3f65d135d3..c0a3ea806cd5 100644 --- a/include/net/dropreason.h +++ b/include/net/dropreason.h @@ -76,6 +76,8 @@ FN(IPV6_NDISC_FRAG) \ FN(IPV6_NDISC_HOP_LIMIT) \ FN(IPV6_NDISC_BAD_CODE) \ + FN(IPV6_NDISC_BAD_OPTIONS) \ + FN(IPV6_NDISC_NS_OTHERHOST) \ FNe(MAX) /** @@ -330,6 +332,12 @@ 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_IPV6_NDISC_NS_OTHERHOST: NEIGHBOUR SOLICITATION + * for another host. + */ + SKB_DROP_REASON_IPV6_NDISC_NS_OTHERHOST, /** * @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be * used as a real 'reason' |