]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ICMPV6: add response to ICMPV6 RFC 8335 PROBE messages
authorAndreas Roeseler <andreas.a.roeseler@gmail.com>
Sat, 26 Jun 2021 14:07:46 +0000 (09:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jun 2021 21:29:45 +0000 (14:29 -0700)
commit2f400e428b529fbe0331492d05d0ff1671446c95
tree6c50937b3c4c2105bffac3ec1bdb205b1e966da7
parent77a912c2634be2883fe57fa830b233ea91b83eb7
ipv6: ICMPV6: add response to ICMPV6 RFC 8335 PROBE messages

This patch builds off of commit 7f1152f1d0b42b6772c603b441668297dd08c566
and adds functionality to respond to ICMPV6 PROBE requests.

Add icmp_build_probe function to construct PROBE requests for both
ICMPV4 and ICMPV6.

Modify icmpv6_rcv to detect ICMPV6 PROBE messages and call the
icmpv6_echo_reply handler.

Modify icmpv6_echo_reply to build a PROBE response message based on the
queried interface.

This patch has been tested using a branch of the iputils git repo which can
be found here: https://github.com/Juniper-Clinic-2020/iputils/tree/probe-request

Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/icmp.h
net/ipv4/icmp.c
net/ipv6/icmp.c