diff options
author | David Ahern <dsahern@gmail.com> | 2019-05-22 22:04:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-23 03:48:44 +0300 |
commit | c3669486b5127165fd348daf4a785996820ac8f2 (patch) | |
tree | 75619369dd98cdf814f9c2675fdc5bf665d8302f /include/net/ip_fib.h | |
parent | 9bd836679210534396a93a02f2fcf3ece64f45f7 (diff) | |
download | linux-c3669486b5127165fd348daf4a785996820ac8f2.tar.xz |
ipv4: export fib_info_update_nh_saddr
Add scope as input argument versus relying on fib_info reference in
fib_nh, and export fib_info_update_nh_saddr.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 79c18bd6a059..8511ebb6f7be 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -201,7 +201,8 @@ static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel) #define FIB_TABLE_HASHSZ 2 #endif -__be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh); +__be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh, + unsigned char scope); __be32 fib_result_prefsrc(struct net *net, struct fib_result *res); #define FIB_RES_NHC(res) ((res).nhc) |