Re: [PATCH net-next] net/ipv6: Do not allow route add with a device that is down

2018-01-24 Thread Ido Schimmel
On Tue, Jan 23, 2018 at 07:13:43PM -0800, David Ahern wrote: > IPv6 allows routes to be installed when the device is not up (admin up). > Worse, it does not mark it as LINKDOWN. IPv4 does not allow it and really > there is no reason for IPv6 to allow it, so check the flags and deny if > device is a

Re: [PATCH net-next] net/ipv6: Do not allow route add with a device that is down

2018-01-23 Thread Roopa Prabhu
On Tue, Jan 23, 2018 at 7:13 PM, David Ahern wrote: > IPv6 allows routes to be installed when the device is not up (admin up). > Worse, it does not mark it as LINKDOWN. IPv4 does not allow it and really > there is no reason for IPv6 to allow it, so check the flags and deny if > device is admin dow

[PATCH net-next] net/ipv6: Do not allow route add with a device that is down

2018-01-23 Thread David Ahern
IPv6 allows routes to be installed when the device is not up (admin up). Worse, it does not mark it as LINKDOWN. IPv4 does not allow it and really there is no reason for IPv6 to allow it, so check the flags and deny if device is admin down. Signed-off-by: David Ahern --- net/ipv6/route.c | 5 +++