Re: [PATCH net-next] net: Allow IP_MULTICAST_IF to set index to L3 slave

2016-12-30 Thread David Miller
From: David Ahern Date: Thu, 29 Dec 2016 15:39:37 -0800 > IP_MULTICAST_IF fails if sk_bound_dev_if is already set and the new index > does not match it. e.g., > > ntpd[15381]: setsockopt IP_MULTICAST_IF 192.168.1.23 fails: Invalid > argument > > Relax the check in setsockopt to allow setti

[PATCH net-next] net: Allow IP_MULTICAST_IF to set index to L3 slave

2016-12-29 Thread David Ahern
IP_MULTICAST_IF fails if sk_bound_dev_if is already set and the new index does not match it. e.g., ntpd[15381]: setsockopt IP_MULTICAST_IF 192.168.1.23 fails: Invalid argument Relax the check in setsockopt to allow setting mc_index to an L3 slave if sk_bound_dev_if points to an L3 master. Ma