OSDN Git Service

ipv6: icmp6: add drop reason support to ndisc_redirect_rcv()
authorEric Dumazet <edumazet@google.com>
Thu, 16 Feb 2023 16:28:39 +0000 (16:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 08:54:23 +0000 (08:54 +0000)
commitec993edf05ca4eee5878edf51fdb5ffa2b1decc3
tree25e3035e0b313523c0e8de0272b973c5af115dae
parent2f326d9d9ff46fb2e45fb3b6ae77eff04332dde6
ipv6: icmp6: add drop reason support to ndisc_redirect_rcv()

Change ndisc_redirect_rcv() to return a drop reason.

For the moment, return PKT_TOO_SMALL, NOT_SPECIFIED
and values from icmpv6_notify().

More reasons are added later.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c