[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190604.183452.368761665430431543.davem@davemloft.net>
Date: Tue, 04 Jun 2019 18:34:52 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: timbeale@...alyst.net.nz
Cc: netdev@...r.kernel.org, kuznet@....inr.ac.ru,
yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH net] udp: only choose unbound UDP socket for multicast
when not in a VRF
From: Tim Beale <timbeale@...alyst.net.nz>
Date: Tue, 4 Jun 2019 13:56:23 +1200
> By default, packets received in another VRF should not be passed to an
> unbound socket in the default VRF. This patch updates the IPv4 UDP
> multicast logic to match the unicast VRF logic (in compute_score()),
> as well as the IPv6 mcast logic (in __udp_v6_is_mcast_sock()).
>
> The particular case I noticed was DHCP discover packets going
> to the 255.255.255.255 address, which are handled by
> __udp4_lib_mcast_deliver(). The previous code meant that running
> multiple different DHCP server or relay agent instances across VRFs
> did not work correctly - any server/relay agent in the default VRF
> received DHCP discover packets for all other VRFs.
>
> Signed-off-by: Tim Beale <timbeale@...alyst.net.nz>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists