From: David Ahern <dsah...@gmail.com>
Date: Wed, 24 Jan 2018 19:45:29 -0800

> 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 <dsah...@gmail.com>
> ---
> v3
> - moved err=-ENETDOWN under the if check per Eric's request
> - left the up check using dev->flags for consistency with IPv4
>   and that it is used more often in ipv4 and ivp6 code than
>   netif_running
> 
> v2
> - missed setting err to -ENETDOWN (thanks for catching that Roopa)

Applied, thanks David.

Reply via email to