aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 00:27:54 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 20:54:08 -0400
commita61ced5d1c2e773620d7855ea2009d770c10a6e6 (patch)
treeca9d49774eb4740a60e5338d4da51af1c8c862d6 /net/ipv4/route.c
parent011a92610826bdeec4b80ab423958d4c512639f6 (diff)
[IPV4]: inet_select_addr() annotations
argument and return value are net-endian. Annotated function and inferred net-endian variables in callers. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 32fcb77295f0..9d8fbf1e5bc3 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1532,7 +1532,7 @@ static int ip_rt_bug(struct sk_buff *skb)
1532 1532
1533void ip_rt_get_source(u8 *addr, struct rtable *rt) 1533void ip_rt_get_source(u8 *addr, struct rtable *rt)
1534{ 1534{
1535 u32 src; 1535 __be32 src;
1536 struct fib_result res; 1536 struct fib_result res;
1537 1537
1538 if (rt->fl.iif == 0) 1538 if (rt->fl.iif == 0)
@@ -1603,7 +1603,7 @@ static int ip_route_input_mc(struct sk_buff *skb, __be32 daddr, __be32 saddr,
1603{ 1603{
1604 unsigned hash; 1604 unsigned hash;
1605 struct rtable *rth; 1605 struct rtable *rth;
1606 u32 spec_dst; 1606 __be32 spec_dst;
1607 struct in_device *in_dev = in_dev_get(dev); 1607 struct in_device *in_dev = in_dev_get(dev);
1608 u32 itag = 0; 1608 u32 itag = 0;
1609 1609