diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-11 23:38:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 23:38:08 -0400 |
commit | 94206125c4aac32e43c25bfe1b827e7ab993b7dc (patch) | |
tree | 6cfbc21c6b69efd90ccec6575a3a3c91e0bd8cad /include/net/route.h | |
parent | d0da720f9f16a5023cc084bed8968702400f6e0f (diff) |
ipv4: Rearrange arguments to ip_rt_redirect()
Pass in the SKB rather than just the IP addresses, so that policy
and other aspects can reside in ip_rt_redirect() rather then
icmp_redirect().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 52362368af09..b1402787aecb 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -108,8 +108,7 @@ extern struct ip_rt_acct __percpu *ip_rt_acct; | |||
108 | 108 | ||
109 | struct in_device; | 109 | struct in_device; |
110 | extern int ip_rt_init(void); | 110 | extern int ip_rt_init(void); |
111 | extern void ip_rt_redirect(__be32 old_gw, __be32 dst, __be32 new_gw, | 111 | extern void ip_rt_redirect(struct sk_buff *skb, __be32 new_gw); |
112 | __be32 src, struct net_device *dev); | ||
113 | extern void rt_cache_flush(struct net *net, int how); | 112 | extern void rt_cache_flush(struct net *net, int how); |
114 | extern void rt_cache_flush_batch(struct net *net); | 113 | extern void rt_cache_flush_batch(struct net *net); |
115 | extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); | 114 | extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); |