]> 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)
commitd36608211693f77a6e9e532385f34845e2021660
treea7829e17b8cc38db2e463e4ab6eacc3318a6ff39
parent6c0938266580b1c803b98a888d9d6e2f4b4e8370
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