diff options
author | David Ahern <dsahern@gmail.com> | 2019-05-22 21:04:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-23 02:48:43 +0200 |
commit | 19a3b7eea42402accf52bcb9ddb51bfdb4d7a13b (patch) | |
tree | a7829e17b8cc38db2e463e4ab6eacc3318a6ff39 /include/net/ipv6_stubs.h | |
parent | ipv6: Add hook to bump sernum for a route to stubs (diff) | |
download | linux-19a3b7eea42402accf52bcb9ddb51bfdb4d7a13b.tar.xz linux-19a3b7eea42402accf52bcb9ddb51bfdb4d7a13b.zip |
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>
Diffstat (limited to 'include/net/ipv6_stubs.h')
-rw-r--r-- | include/net/ipv6_stubs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ipv6_stubs.h b/include/net/ipv6_stubs.h index 97f42e16b3b3..5c93e942c50b 100644 --- a/include/net/ipv6_stubs.h +++ b/include/net/ipv6_stubs.h @@ -47,6 +47,9 @@ struct ipv6_stub { void (*fib6_nh_release)(struct fib6_nh *fib6_nh); void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt); int (*ip6_del_rt)(struct net *net, struct fib6_info *rt); + void (*fib6_rt_update)(struct net *net, struct fib6_info *rt, + struct nl_info *info); + void (*udpv6_encap_enable)(void); void (*ndisc_send_na)(struct net_device *dev, const struct in6_addr *daddr, const struct in6_addr *solicited_addr, |