Re: [PATCH net] ipv6: Consider sk_bound_dev_if when binding a raw socket to an address

2019-05-21 Thread David Miller
From: Mike Manning Date: Mon, 20 May 2019 19:57:17 +0100 > IPv6 does not consider if the socket is bound to a device when binding > to an address. The result is that a socket can be bound to eth0 and > then bound to the address of eth1. If the device is a VRF, the result > is that a socket can on

Re: [PATCH net] ipv6: Consider sk_bound_dev_if when binding a raw socket to an address

2019-05-20 Thread David Ahern
On 5/20/19 12:57 PM, Mike Manning wrote: > IPv6 does not consider if the socket is bound to a device when binding > to an address. The result is that a socket can be bound to eth0 and > then bound to the address of eth1. If the device is a VRF, the result > is that a socket can only be bound to an

[PATCH net] ipv6: Consider sk_bound_dev_if when binding a raw socket to an address

2019-05-20 Thread Mike Manning
IPv6 does not consider if the socket is bound to a device when binding to an address. The result is that a socket can be bound to eth0 and then bound to the address of eth1. If the device is a VRF, the result is that a socket can only be bound to an address in the default VRF. Resolve by consideri