Commit f7655229 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV4]: ip_rt_redirect() annotations

The first 4 arguments of ip_rt_redirect() are net-endian.  Annotated.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e12bb22
...@@ -109,8 +109,8 @@ extern struct ip_rt_acct *ip_rt_acct; ...@@ -109,8 +109,8 @@ extern struct ip_rt_acct *ip_rt_acct;
struct in_device; struct in_device;
extern int ip_rt_init(void); extern int ip_rt_init(void);
extern void ip_rt_redirect(u32 old_gw, u32 dst, u32 new_gw, extern void ip_rt_redirect(__be32 old_gw, __be32 dst, __be32 new_gw,
u32 src, struct net_device *dev); __be32 src, struct net_device *dev);
extern void ip_rt_advice(struct rtable **rp, int advice); extern void ip_rt_advice(struct rtable **rp, int advice);
extern void rt_cache_flush(int how); extern void rt_cache_flush(int how);
extern int __ip_route_output_key(struct rtable **, const struct flowi *flp); extern int __ip_route_output_key(struct rtable **, const struct flowi *flp);
......
...@@ -1118,13 +1118,13 @@ static void rt_del(unsigned hash, struct rtable *rt) ...@@ -1118,13 +1118,13 @@ static void rt_del(unsigned hash, struct rtable *rt)
spin_unlock_bh(rt_hash_lock_addr(hash)); spin_unlock_bh(rt_hash_lock_addr(hash));
} }
void ip_rt_redirect(u32 old_gw, u32 daddr, u32 new_gw, void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw,
u32 saddr, struct net_device *dev) __be32 saddr, struct net_device *dev)
{ {
int i, k; int i, k;
struct in_device *in_dev = in_dev_get(dev); struct in_device *in_dev = in_dev_get(dev);
struct rtable *rth, **rthp; struct rtable *rth, **rthp;
u32 skeys[2] = { saddr, 0 }; __be32 skeys[2] = { saddr, 0 };
int ikeys[2] = { dev->ifindex, 0 }; int ikeys[2] = { dev->ifindex, 0 };
struct netevent_redirect netevent; struct netevent_redirect netevent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment