ipv6: Add ip6_redirect() and ip6_sk_redirect() helper functions.
[firefly-linux-kernel-4.4.55.git] / include / net / ip6_route.h
index 58cb3fc3487967147b5cb7735bbab4bafd69c0bb..693940565d8ab7166b8f70101bfa569328ee068c 100644 (file)
@@ -133,17 +133,14 @@ extern int                        rt6_route_rcv(struct net_device *dev,
                                              u8 *opt, int len,
                                              const struct in6_addr *gwaddr);
 
-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_redirect(struct sk_buff *skb);
 
 extern void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu,
                            int oif, u32 mark);
 extern void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk,
                               __be32 mtu);
+extern void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark);
+extern void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk);
 
 struct netlink_callback;