diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-08-08 00:54:37 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:08 -0400 |
commit | 8423a9aadfaa135fd5fd1ab8bbd4a1e76b4143c9 (patch) | |
tree | f9f98736ef5aee88a297043ecd4cc1cc6f655879 /net/ipv6/addrconf.c | |
parent | 8ce11e6a9faf1f1c849b77104adc1642c46aee95 (diff) |
[IPV6]: Protect RTM_GETRULE table entry with IPV6_MULTIPLE_TABLES ifdef
This is how IPv4 handles this case too.
Based upon a patch from Andrew Morton.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index c2a4db843e51..9ba1e811ba50 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -3529,7 +3529,9 @@ static struct rtnetlink_link inet6_rtnetlink_table[RTM_NR_MSGTYPES] = { | |||
3529 | [RTM_DELROUTE - RTM_BASE] = { .doit = inet6_rtm_delroute, }, | 3529 | [RTM_DELROUTE - RTM_BASE] = { .doit = inet6_rtm_delroute, }, |
3530 | [RTM_GETROUTE - RTM_BASE] = { .doit = inet6_rtm_getroute, | 3530 | [RTM_GETROUTE - RTM_BASE] = { .doit = inet6_rtm_getroute, |
3531 | .dumpit = inet6_dump_fib, }, | 3531 | .dumpit = inet6_dump_fib, }, |
3532 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES | ||
3532 | [RTM_GETRULE - RTM_BASE] = { .dumpit = fib6_rules_dump, }, | 3533 | [RTM_GETRULE - RTM_BASE] = { .dumpit = fib6_rules_dump, }, |
3534 | #endif | ||
3533 | }; | 3535 | }; |
3534 | 3536 | ||
3535 | static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) | 3537 | static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) |