aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-22 14:58:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:13 -0400
commitc127ea2c45d1b13a672fde254679721bb282e90a (patch)
tree01569ce9d6a250b3f3e311a02ea1890327c3a36f /net/ipv6/route.c
parentfa34ddd739cecf3999ec0b7562618e8321829d41 (diff)
[IPv6]: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 52cbe1cd4045..70f760f069b1 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2015,7 +2015,7 @@ errout:
2015 return err; 2015 return err;
2016} 2016}
2017 2017
2018int inet6_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) 2018static int inet6_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
2019{ 2019{
2020 struct fib6_config cfg; 2020 struct fib6_config cfg;
2021 int err; 2021 int err;
@@ -2027,7 +2027,7 @@ int inet6_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
2027 return ip6_route_del(&cfg); 2027 return ip6_route_del(&cfg);
2028} 2028}
2029 2029
2030int inet6_rtm_newroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) 2030static int inet6_rtm_newroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
2031{ 2031{
2032 struct fib6_config cfg; 2032 struct fib6_config cfg;
2033 int err; 2033 int err;
@@ -2164,7 +2164,7 @@ int rt6_dump_route(struct rt6_info *rt, void *p_arg)
2164 prefix, NLM_F_MULTI); 2164 prefix, NLM_F_MULTI);
2165} 2165}
2166 2166
2167int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) 2167static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg)
2168{ 2168{
2169 struct nlattr *tb[RTA_MAX+1]; 2169 struct nlattr *tb[RTA_MAX+1];
2170 struct rt6_info *rt; 2170 struct rt6_info *rt;
@@ -2508,6 +2508,10 @@ void __init ip6_route_init(void)
2508#ifdef CONFIG_IPV6_MULTIPLE_TABLES 2508#ifdef CONFIG_IPV6_MULTIPLE_TABLES
2509 fib6_rules_init(); 2509 fib6_rules_init();
2510#endif 2510#endif
2511
2512 __rtnl_register(PF_INET6, RTM_NEWROUTE, inet6_rtm_newroute, NULL);
2513 __rtnl_register(PF_INET6, RTM_DELROUTE, inet6_rtm_delroute, NULL);
2514 __rtnl_register(PF_INET6, RTM_GETROUTE, inet6_rtm_getroute, NULL);
2511} 2515}
2512 2516
2513void ip6_route_cleanup(void) 2517void ip6_route_cleanup(void)