diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 00:25:43 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 20:54:03 -0400 |
commit | f7655229c06d041323b40bd6eb9f95ca0ce95506 (patch) | |
tree | 55dd35d7a70a8e2041b79f76f9122d89b1c1d2c4 /net | |
parent | 9e12bb22e32389b41222c9d9fb55724fed83a038 (diff) |
[IPV4]: ip_rt_redirect() annotations
The first 4 arguments of ip_rt_redirect() are net-endian. Annotated.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index bbe529774fd9..e14df8ec5082 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1118,13 +1118,13 @@ static void rt_del(unsigned hash, struct rtable *rt) | |||
1118 | spin_unlock_bh(rt_hash_lock_addr(hash)); | 1118 | spin_unlock_bh(rt_hash_lock_addr(hash)); |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | void ip_rt_redirect(u32 old_gw, u32 daddr, u32 new_gw, | 1121 | void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw, |
1122 | u32 saddr, struct net_device *dev) | 1122 | __be32 saddr, struct net_device *dev) |
1123 | { | 1123 | { |
1124 | int i, k; | 1124 | int i, k; |
1125 | struct in_device *in_dev = in_dev_get(dev); | 1125 | struct in_device *in_dev = in_dev_get(dev); |
1126 | struct rtable *rth, **rthp; | 1126 | struct rtable *rth, **rthp; |
1127 | u32 skeys[2] = { saddr, 0 }; | 1127 | __be32 skeys[2] = { saddr, 0 }; |
1128 | int ikeys[2] = { dev->ifindex, 0 }; | 1128 | int ikeys[2] = { dev->ifindex, 0 }; |
1129 | struct netevent_redirect netevent; | 1129 | struct netevent_redirect netevent; |
1130 | 1130 | ||