Skip to content

Commit

Permalink
[IPV6]: Make fib6_node subtree depend on IPV6_SUBTREES
Browse files Browse the repository at this point in the history
Make fib6_node 'subtree' depend on IPV6_SUBTREES.

Signed-off-by: Kim Nordlund <kim.nordlund@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kim Nordlund authored and David S. Miller committed Dec 14, 2006
1 parent 6ab792f commit 8bce65b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ struct fib6_node
struct fib6_node *parent;
struct fib6_node *left;
struct fib6_node *right;

#ifdef CONFIG_IPV6_SUBTREES
struct fib6_node *subtree;

#endif
struct rt6_info *leaf;

__u16 fn_bit; /* bit key */
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ do { \
goto out; \
pn = fn->parent; \
if (FIB6_SUBTREE(pn) && FIB6_SUBTREE(pn) != fn) \
fn = fib6_lookup(pn->subtree, NULL, saddr); \
fn = fib6_lookup(FIB6_SUBTREE(pn), NULL, saddr); \
else \
fn = pn; \
if (fn->fn_flags & RTN_RTINFO) \
Expand Down

0 comments on commit 8bce65b

Please sign in to comment.