hwmon: ina219: add precision multiplier
[linux-2.6.git] / include / net / ip6_route.h
index 86b1cb4..2ad92ca 100644 (file)
@@ -21,8 +21,6 @@ struct route_info {
        __u8                    prefix[0];      /* 0,8 or 16 */
 };
 
-#ifdef __KERNEL__
-
 #include <net/flow.h>
 #include <net/ip6_fib.h>
 #include <net/sock.h>
@@ -72,6 +70,8 @@ extern void                   ip6_route_input(struct sk_buff *skb);
 extern struct dst_entry *      ip6_route_output(struct net *net,
                                                 const struct sock *sk,
                                                 struct flowi6 *fl6);
+extern struct dst_entry *      ip6_route_lookup(struct net *net,
+                                                struct flowi6 *fl6, int flags);
 
 extern int                     ip6_route_init(void);
 extern void                    ip6_route_cleanup(void);
@@ -86,7 +86,7 @@ extern int                    ip6_del_rt(struct rt6_info *);
 
 extern int                     ip6_route_get_saddr(struct net *net,
                                                    struct rt6_info *rt,
-                                                   struct in6_addr *daddr,
+                                                   const struct in6_addr *daddr,
                                                    unsigned int prefs,
                                                    struct in6_addr *saddr);
 
@@ -97,14 +97,14 @@ extern struct rt6_info              *rt6_lookup(struct net *net,
 
 extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
                                         struct neighbour *neigh,
-                                        const struct in6_addr *addr);
+                                        struct flowi6 *fl6);
 extern int icmp6_dst_gc(void);
 
 extern void fib6_force_start_gc(struct net *net);
 
 extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
                                           const struct in6_addr *addr,
-                                          int anycast);
+                                          bool anycast);
 
 extern int                     ip6_dst_hoplimit(struct dst_entry *dst);
 
@@ -112,9 +112,9 @@ extern int                  ip6_dst_hoplimit(struct dst_entry *dst);
  *     support functions for ND
  *
  */
-extern struct rt6_info *       rt6_get_dflt_router(struct in6_addr *addr,
+extern struct rt6_info *       rt6_get_dflt_router(const struct in6_addr *addr,
                                                    struct net_device *dev);
-extern struct rt6_info *       rt6_add_dflt_router(struct in6_addr *gwaddr,
+extern struct rt6_info *       rt6_add_dflt_router(const struct in6_addr *gwaddr,
                                                    struct net_device *dev,
                                                    unsigned int pref);
 
@@ -122,17 +122,17 @@ extern void                       rt6_purge_dflt_routers(struct net *net);
 
 extern int                     rt6_route_rcv(struct net_device *dev,
                                              u8 *opt, int len,
-                                             struct in6_addr *gwaddr);
+                                             const struct in6_addr *gwaddr);
 
-extern void                    rt6_redirect(struct in6_addr *dest,
-                                            struct in6_addr *src,
-                                            struct in6_addr *saddr,
+extern void                    rt6_redirect(const struct in6_addr *dest,
+                                            const struct in6_addr *src,
+                                            const struct in6_addr *saddr,
                                             struct neighbour *neigh,
                                             u8 *lladdr,
                                             int on_link);
 
-extern void                    rt6_pmtu_discovery(struct in6_addr *daddr,
-                                                  struct in6_addr *saddr,
+extern void                    rt6_pmtu_discovery(const struct in6_addr *daddr,
+                                                  const struct in6_addr *saddr,
                                                   struct net_device *dev,
                                                   u32 pmtu);
 
@@ -193,4 +193,3 @@ static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
 }
 
 #endif
-#endif