]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - include/net/ip6_route.h
netns: Add network namespace argument to rt6_fill_node() and ipv6_dev_get_saddr()
[lisovros/linux_canprio.git] / include / net / ip6_route.h
index 3ae6799c2b141e5d7fc39828a17466056bbb0491..03462e5504897938822d1c232aeb8e0cda20baec 100644 (file)
@@ -37,7 +37,6 @@ struct route_info {
 #define RT6_LOOKUP_F_SRCPREF_PUBLIC    0x00000010
 #define RT6_LOOKUP_F_SRCPREF_COA       0x00000020
 
-extern struct rt6_info *ip6_null_entry;
 
 #ifdef CONFIG_IPV6_MULTIPLE_TABLES
 extern struct rt6_info *ip6_prohibit_entry;
@@ -61,28 +60,14 @@ extern int                  ip6_route_add(struct fib6_config *cfg);
 extern int                     ip6_ins_rt(struct rt6_info *);
 extern int                     ip6_del_rt(struct rt6_info *);
 
-extern int                     ip6_rt_addr_add(struct in6_addr *addr,
-                                               struct net_device *dev,
-                                               int anycast);
-
-extern int                     ip6_rt_addr_del(struct in6_addr *addr,
-                                               struct net_device *dev);
-
-extern void                    rt6_sndmsg(int type, struct in6_addr *dst,
-                                          struct in6_addr *src,
-                                          struct in6_addr *gw,
-                                          struct net_device *dev, 
-                                          int dstlen, int srclen,
-                                          int metric, __u32 flags);
-
 extern struct rt6_info         *rt6_lookup(struct net *net,
-                                           struct in6_addr *daddr,
-                                           struct in6_addr *saddr,
+                                           const struct in6_addr *daddr,
+                                           const struct in6_addr *saddr,
                                            int oif, int flags);
 
 extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
                                         struct neighbour *neigh,
-                                        struct in6_addr *addr);
+                                        const struct in6_addr *addr);
 extern int icmp6_dst_gc(int *more);
 
 extern void fib6_force_start_gc(struct net *net);
@@ -127,6 +112,7 @@ struct rt6_rtnl_dump_arg
 {
        struct sk_buff *skb;
        struct netlink_callback *cb;
+       struct net *net;
 };
 
 extern int rt6_dump_route(struct rt6_info *rt, void *p_arg);