diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-10 18:47:07 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-13 19:55:32 -0800 |
commit | 30c89bad3ea2ef7a2d4686f9c3cc08420fe627bc (patch) | |
tree | b3669633ac645d4dc9ad86bfed039b1596f440f0 /include/net/ipv6.h | |
parent | 1fb2d41501f38192d8a19da585cd441cf8845697 (diff) | |
download | lwn-30c89bad3ea2ef7a2d4686f9c3cc08420fe627bc.tar.gz lwn-30c89bad3ea2ef7a2d4686f9c3cc08420fe627bc.zip |
ipv6: icmp6: add drop reason support to icmpv6_notify()
Accurately reports what happened in icmpv6_notify() when handling
a packet.
This makes use of the new IPV6_BAD_EXTHDR drop reason.
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/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 03f3af02a9a6..7332296eca44 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -436,7 +436,8 @@ static inline void fl6_sock_release(struct ip6_flowlabel *fl) atomic_dec(&fl->users); } -void icmpv6_notify(struct sk_buff *skb, u8 type, u8 code, __be32 info); +enum skb_drop_reason icmpv6_notify(struct sk_buff *skb, u8 type, + u8 code, __be32 info); void icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6, struct icmp6hdr *thdr, int len); |