diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-31 18:48:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 19:28:39 -0800 |
commit | 85326fa54b5516d8859617cc5fdfce8ae19c1480 (patch) | |
tree | 82129844e755914183bc262b250301d06b7db398 /include/net/ip_fib.h | |
parent | 4b8aa9abee2e108b132dea7a7c4e81a167895354 (diff) | |
download | linux-85326fa54b5516d8859617cc5fdfce8ae19c1480.tar.gz linux-85326fa54b5516d8859617cc5fdfce8ae19c1480.tar.bz2 linux-85326fa54b5516d8859617cc5fdfce8ae19c1480.zip |
[IPV4]: fib_sync_down rework.
fib_sync_down can be called with an address and with a device. In
reality it is called either with address OR with a device. The
codepath inside is completely different, so lets separate it into two
calls for these two cases.
Signed-off-by: Denis V. Lunev <den@openvz.org>
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 9daa60b544ba..1b2f008db978 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -218,7 +218,8 @@ extern void fib_select_default(struct net *net, const struct flowi *flp, /* Exported by fib_semantics.c */ extern int ip_fib_check_default(__be32 gw, struct net_device *dev); -extern int fib_sync_down(__be32 local, struct net_device *dev, int force); +extern int fib_sync_down_dev(struct net_device *dev, int force); +extern int fib_sync_down_addr(__be32 local); extern int fib_sync_up(struct net_device *dev); extern __be32 __fib_res_prefsrc(struct fib_result *res); extern void fib_select_multipath(const struct flowi *flp, struct fib_result *res); |