Re: [PATCH net-next] net: Update raw socket bind to consider l3 domain

2016-11-07 Thread David Miller
From: David Ahern Date: Thu, 3 Nov 2016 09:25:00 -0700 > Binding a raw socket to a local address fails if the socket is bound > to an L3 domain: > > $ vrf-test -s -l 10.100.1.2 -R -I red > error binding socket: 99: Cannot assign requested address > > Update raw_bind to look consider i

[PATCH net-next] net: Update raw socket bind to consider l3 domain

2016-11-03 Thread David Ahern
Binding a raw socket to a local address fails if the socket is bound to an L3 domain: $ vrf-test -s -l 10.100.1.2 -R -I red error binding socket: 99: Cannot assign requested address Update raw_bind to look consider if sk_bound_dev_if is bound to an L3 domain and use inet_addr_type_table