From: Andreas Roeseler <hidden> Date: 2021-04-12 19:08:58
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 <redacted>
---
net/ipv4/icmp.c | 5 +++++
1 file changed, 5 insertions(+)
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Date: 2021-04-12 19:28:56
On Mon, Apr 12, 2021 at 3:09 PM Andreas Roeseler
[off-list ref] wrote:
quoted hunk
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 <redacted>
---
net/ipv4/icmp.c | 5 +++++
1 file changed, 5 insertions(+)
From: Andreas Roeseler <hidden> Date: 2021-04-12 19:40:59
On Mon, 2021-04-12 at 15:28 -0400, Willem de Bruijn wrote:
On Mon, Apr 12, 2021 at 3:09 PM Andreas Roeseler
[off-list ref] wrote:
quoted
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 <redacted>
---
net/ipv4/icmp.c | 5 +++++
1 file changed, 5 insertions(+)
Yes, but this should be handled in icmpv6_rcv in net/ipv6/icmp.c and
we're thinking of including all icmpv6 support for RFC 8335 (replying
and parsing replies) in a separate patch.
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Date: 2021-04-12 19:53:06
On Mon, Apr 12, 2021 at 3:41 PM Andreas Roeseler
[off-list ref] wrote:
On Mon, 2021-04-12 at 15:28 -0400, Willem de Bruijn wrote:
quoted
On Mon, Apr 12, 2021 at 3:09 PM Andreas Roeseler
[off-list ref] wrote:
quoted
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 <redacted>
---
net/ipv4/icmp.c | 5 +++++
1 file changed, 5 insertions(+)
@@ -1196,6 +1196,11 @@ int icmp_rcv(struct sk_buff *skb)gotosuccess_check;}+if(icmph->type==ICMP_EXT_ECHOREPLY){+success=ping_rcv(skb);+gotosuccess_check;+}+
Do you need the same for ICMPV6_EXT_ECHO_REPLY ?
Yes, but this should be handled in icmpv6_rcv in net/ipv6/icmp.c and
we're thinking of including all icmpv6 support for RFC 8335 (replying
and parsing replies) in a separate patch.
Please send them together in the same patchset.
Sending ipv4 and ipv6 separately can lead to missing or subtly
differently implemented features. It's preferable to be able to review
both at the same time.