summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-02-06 22:17:06 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-08 03:52:42 +0100
commit44750f8483a1bc4bda58ec4f7b7af5b053833d49 (patch)
tree81710df87a07ecdb2c5d47e4f774b8de36107e0a /drivers/net
parentnet/ipv6: Handle reject routes with onlink flag (diff)
downloadlinux-44750f8483a1bc4bda58ec4f7b7af5b053833d49.tar.xz
linux-44750f8483a1bc4bda58ec4f7b7af5b053833d49.zip
net/ipv6: onlink nexthop checks should default to main table
Because of differences in how ipv4 and ipv6 handle fib lookups, verification of nexthops with onlink flag need to default to the main table rather than the local table used by IPv4. As it stands an address within a connected route on device 1 can be used with onlink on device 2. Updating the table properly rejects the route due to the egress device mismatch. Update the extack message as well to show it could be a device mismatch for the nexthop spec. Fixes: fc1e64e1092f ("net/ipv6: Add support for onlink flag") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions