diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-24 21:06:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-24 21:06:47 -0400 |
commit | 37e826c513883099c298317bad1b3b677b2905fb (patch) | |
tree | a032cfe69e0cde179d86eba157cf9dc85d67df86 /include/net | |
parent | 436c3b66ec9824a633724ae42de1c416af4f2063 (diff) |
ipv4: Fix nexthop caching wrt. scoping.
Move the scope value out of the fib alias entries and into fib_info,
so that we always use the correct scope when recomputing the nexthop
cached source address.
Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_fib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index cd92b923a578..e5d66ec88cf6 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -51,7 +51,6 @@ struct fib_nh { | |||
51 | struct fib_info *nh_parent; | 51 | struct fib_info *nh_parent; |
52 | unsigned nh_flags; | 52 | unsigned nh_flags; |
53 | unsigned char nh_scope; | 53 | unsigned char nh_scope; |
54 | unsigned char nh_cfg_scope; | ||
55 | #ifdef CONFIG_IP_ROUTE_MULTIPATH | 54 | #ifdef CONFIG_IP_ROUTE_MULTIPATH |
56 | int nh_weight; | 55 | int nh_weight; |
57 | int nh_power; | 56 | int nh_power; |
@@ -75,9 +74,10 @@ struct fib_info { | |||
75 | struct net *fib_net; | 74 | struct net *fib_net; |
76 | int fib_treeref; | 75 | int fib_treeref; |
77 | atomic_t fib_clntref; | 76 | atomic_t fib_clntref; |
78 | int fib_dead; | ||
79 | unsigned fib_flags; | 77 | unsigned fib_flags; |
80 | int fib_protocol; | 78 | unsigned char fib_dead; |
79 | unsigned char fib_protocol; | ||
80 | unsigned char fib_scope; | ||
81 | __be32 fib_prefsrc; | 81 | __be32 fib_prefsrc; |
82 | u32 fib_priority; | 82 | u32 fib_priority; |
83 | u32 *fib_metrics; | 83 | u32 *fib_metrics; |