]> git.baikalelectronics.ru Git - kernel.git/commit
icmp: ICMPV6: pass RFC 8335 reply messages to ping_rcv
authorAndreas Roeseler <andreas.a.roeseler@gmail.com>
Mon, 12 Apr 2021 21:23:56 +0000 (16:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 21:38:01 +0000 (14:38 -0700)
commitc6c364c5b197f76fe895b8e255c9754dfebb8e63
tree11625e03939fb475b84db582d077a1c6a76fe0af
parent7379c98e13bb36592dd04f069191df07a9248917
icmp: ICMPV6: pass RFC 8335 reply messages to ping_rcv

The current icmp_rcv function drops all unknown ICMP types, including
ICMP_EXT_ECHOREPLY (type 43). In order to parse Extended Echo Reply messages, we have
to pass these packets to the ping_rcv function, which does not do any
other filtering and passes the packet to the designated socket.

Pass incoming RFC 8335 ICMP Extended Echo Reply packets to the ping_rcv
handler instead of discarding the packet.

Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c
net/ipv6/icmp.c