]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Return error for RTA_GATEWAY attribute
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 Feb 2019 17:00:04 +0000 (09:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 21:23:17 +0000 (13:23 -0800)
commit3a0150718dbfa76054c1e4622782bd4ff88642d4
treed55dc8f0f63c6ffe967e69a3f2597a1e9ffaa06e
parent64121f4ede118a59f1b56a7993ed4dac6f2a3660
mpls: Return error for RTA_GATEWAY attribute

MPLS does not support nexthops with an MPLS address family.
Specifically, it does not handle RTA_GATEWAY attribute. Make it
clear by returning an error.

Fixes: 9215d022970b6 ("mpls: Netlink commands to add, remove, and dump routes")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c