]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: icmp6: Allow icmp messages to be looped back
authorBrendan McGrath <redmcg@redmandi.dyndns.org>
Wed, 13 Dec 2017 11:14:57 +0000 (22:14 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Dec 2017 03:51:26 +0000 (22:51 -0500)
commit7493fce5e7e8f886576fc90eb7a550663b46154e
tree5b4d007e284c912b34628de1b66e6d237cceb2c0
parentca1bcd0ddc357dbe4c0533656746103f576f7548
ipv6: icmp6: Allow icmp messages to be looped back

One example of when an ICMPv6 packet is required to be looped back is
when a host acts as both a Multicast Listener and a Multicast Router.

A Multicast Router will listen on address ff02::16 for MLDv2 messages.

Currently, MLDv2 messages originating from a Multicast Listener running
on the same host as the Multicast Router are not being delivered to the
Multicast Router. This is due to dst.input being assigned the default
value of dst_discard.

This results in the packet being looped back but discarded before being
delivered to the Multicast Router.

This patch sets dst.input to ip6_input to ensure a looped back packet
is delivered to the Multicast Router.

Signed-off-by: Brendan McGrath <redmcg@redmandi.dyndns.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c