aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 01:17:51 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:01:07 -0400
commitfd6832220974809141b3981e380b78690bba8911 (patch)
tree60fcf8bb0912b3b2eb91836540fdbb83265ef8e4 /net/ipv4/arp.c
parente4883014f48f8c17c17a2526cb5cb6e17c5f94e7 (diff)
[IPV4]: inet_addr_type() annotations
argument and inferred net-endian variables in callers annotated. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r--net/ipv4/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index db72339c21e1..2a29a5ebc978 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -234,7 +234,7 @@ static u32 arp_hash(const void *pkey, const struct net_device *dev)
234 234
235static int arp_constructor(struct neighbour *neigh) 235static int arp_constructor(struct neighbour *neigh)
236{ 236{
237 u32 addr = *(u32*)neigh->primary_key; 237 __be32 addr = *(__be32*)neigh->primary_key;
238 struct net_device *dev = neigh->dev; 238 struct net_device *dev = neigh->dev;
239 struct in_device *in_dev; 239 struct in_device *in_dev;
240 struct neigh_parms *parms; 240 struct neigh_parms *parms;
@@ -470,7 +470,7 @@ static int arp_set_predefined(int addr_hint, unsigned char * haddr, u32 paddr, s
470int arp_find(unsigned char *haddr, struct sk_buff *skb) 470int arp_find(unsigned char *haddr, struct sk_buff *skb)
471{ 471{
472 struct net_device *dev = skb->dev; 472 struct net_device *dev = skb->dev;
473 u32 paddr; 473 __be32 paddr;
474 struct neighbour *n; 474 struct neighbour *n;
475 475
476 if (!skb->dst) { 476 if (!skb->dst) {