Merge branch 'net-fail-route'
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 21:23:17 +0000 (13:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 21:23:17 +0000 (13:23 -0800)
commitd8e96745a97fb8cf7bd8b239f13b07a5dd313e60
treed55dc8f0f63c6ffe967e69a3f2597a1e9ffaa06e
parent3da1ed7ac398f34fff1694017a07054d69c5f5c5
parentbe48220edd48ca0d569782992840488a52373a24
Merge branch 'net-fail-route'

David Ahern says:

====================
net: Fail route add with unsupported nexthop attribute

RTA_VIA was added for MPLS as a way of specifying a gateway from a
different address family. IPv4 and IPv6 do not currently support RTA_VIA
so using it leads to routes that are not what the user intended. Catch
and fail - returning a proper error message.

MPLS on the other hand does not support RTA_GATEWAY since it does not
make sense to have a nexthop from the MPLS address family. Similarly,
catch and fail - returning a proper error message.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>