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

2019-01-03 Thread Ralf Jung
Hi all, thanks a lot! I can confirm that this fixes my test script. Kind regards, Ralf On 03.01.19 03:57, David Ahern wrote: > From: David Ahern > > 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 the

Re: Cannot bind to IPv6 address in VRF

2019-01-01 Thread Ralf Jung
Hi, > I see the problem. The check on the address bind is not considering the > L3 domain - or even the device at all. That's why binding to an address > in the default VRF works, but bind to an address in a VRF fails > (requires an l3mdev match). Not sure how this has fallen through the > cracks

Cannot bind to IPv6 address in VRF

2019-01-01 Thread Ralf Jung
Hi all, I am experiencing trouble with using Bird over IPv6 inside a VRF, and reduced this down to a problem with IPv6 `bind`. I have a VRF called "vrf_freifunk", with some GRE tunnel devices in it: > 3: vrf_freifunk: mtu 65536 qdisc noqueue state UP > group default qlen 1000 > link/ether