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>
Showing
- include/net/ip6_fib.h 6 additions, 0 deletionsinclude/net/ip6_fib.h
- include/net/ipv6_stubs.h 3 additions, 0 deletionsinclude/net/ipv6_stubs.h
- net/ipv6/af_inet6.c 1 addition, 0 deletionsnet/ipv6/af_inet6.c
- net/ipv6/ip6_fib.c 4 additions, 4 deletionsnet/ipv6/ip6_fib.c
- net/ipv6/route.c 32 additions, 0 deletionsnet/ipv6/route.c
Loading
Please register or sign in to comment