Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain

2019-02-28 Thread David Miller
From: Francesco Ruggeri Date: Thu, 28 Feb 2019 16:09:17 -0800 > On Thu, Feb 28, 2019 at 3:31 PM David Ahern wrote: >> >> On 2/28/19 2:02 PM, David Miller wrote: >> > From: frugg...@arista.com (Francesco Ruggeri) >> > Date: Thu, 28 Feb 2019 11:01:46 -0800 >> > >> >> ip6_call_ra_chain is called wh

Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain

2019-02-28 Thread Francesco Ruggeri
On Thu, Feb 28, 2019 at 3:31 PM David Ahern wrote: > > On 2/28/19 2:02 PM, David Miller wrote: > > From: frugg...@arista.com (Francesco Ruggeri) > > Date: Thu, 28 Feb 2019 11:01:46 -0800 > > > >> ip6_call_ra_chain is called when IPv6 packet with Router Alert option > >> is forwarded. > >> It needs

Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain

2019-02-28 Thread David Ahern
On 2/28/19 2:02 PM, David Miller wrote: > From: frugg...@arista.com (Francesco Ruggeri) > Date: Thu, 28 Feb 2019 11:01:46 -0800 > >> ip6_call_ra_chain is called when IPv6 packet with Router Alert option >> is forwarded. >> It needs to check if the net of the socket is the same as the net of the >>

Re: [PATCH] net: ipv6: check net in ip6_call_ra_chain

2019-02-28 Thread David Miller
From: frugg...@arista.com (Francesco Ruggeri) Date: Thu, 28 Feb 2019 11:01:46 -0800 > ip6_call_ra_chain is called when IPv6 packet with Router Alert option > is forwarded. > It needs to check if the net of the socket is the same as the net of the > input device, otherwise the packet gets delivered

[PATCH] net: ipv6: check net in ip6_call_ra_chain

2019-02-28 Thread Francesco Ruggeri
ip6_call_ra_chain is called when IPv6 packet with Router Alert option is forwarded. It needs to check if the net of the socket is the same as the net of the input device, otherwise the packet gets delivered to every IPv6 socket listening for Router Alerts, no matter which network namespace it is in