aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/hp
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-28 21:00:55 -0400
committerDavid S. Miller <davem@davemloft.net>2006-09-28 21:00:55 -0400
commita144ea4b7a13087081ab5402fa9ad0bcfd249e67 (patch)
treea0452a546c231d85a89e8920c26e5dec4595ba54 /arch/ia64/hp
parent6d85c10abe840e98cbac673202fe7cc9ada2180c (diff)
[IPV4]: annotate struct in_ifaddr
ifa_local, ifa_address, ifa_mask, ifa_broadcast and ifa_anycast are net-endian. Annotated them and variables that are inferred to be net-endian. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r--arch/ia64/hp/sim/simeth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c
index b5195be62818..e1a1b11473e2 100644
--- a/arch/ia64/hp/sim/simeth.c
+++ b/arch/ia64/hp/sim/simeth.c
@@ -320,7 +320,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
320 } 320 }
321 321
322 printk(KERN_INFO "simeth_device_event: %s ipaddr=0x%x\n", 322 printk(KERN_INFO "simeth_device_event: %s ipaddr=0x%x\n",
323 dev->name, htonl(ifa->ifa_local)); 323 dev->name, ntohl(ifa->ifa_local));
324 324
325 /* 325 /*
326 * XXX Fix me 326 * XXX Fix me
@@ -331,7 +331,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
331 local = dev->priv; 331 local = dev->priv;
332 /* now do it for real */ 332 /* now do it for real */
333 r = event == NETDEV_UP ? 333 r = event == NETDEV_UP ?
334 netdev_attach(local->simfd, dev->irq, htonl(ifa->ifa_local)): 334 netdev_attach(local->simfd, dev->irq, ntohl(ifa->ifa_local)):
335 netdev_detach(local->simfd); 335 netdev_detach(local->simfd);
336 336
337 printk(KERN_INFO "simeth: netdev_attach/detach: event=%s ->%d\n", 337 printk(KERN_INFO "simeth: netdev_attach/detach: event=%s ->%d\n",