]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: export function to send route updates
authorDavid Ahern <dsahern@gmail.com>
Wed, 22 May 2019 19:04:41 +0000 (12:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:48:43 +0000 (17:48 -0700)
commit1f163bd0a6f67baeadc0592adf4ef3bc80cddf5a
treea7829e17b8cc38db2e463e4ab6eacc3318a6ff39
parentd2c929ce4b4fdd42709cc22da6763006bc90a566
ipv6: export function to send route updates

Add fib6_rt_update to send RTM_NEWROUTE with NLM_F_REPLACE set. This
helper will be used by the nexthop code to notify userspace of routes
that are impacted when a nexthop config is updated via replace.

This notification is needed for legacy apps that do not understand
the new nexthop object. Apps that are nexthop aware can use the
RTA_NH_ID attribute in the route notification to just ignore it.

In the future this should be wrapped in a sysctl to allow OS'es that
are fully updated to avoid the notificaton storm.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/ipv6_stubs.h
net/ipv6/af_inet6.c
net/ipv6/ip6_fib.c
net/ipv6/route.c