]> err.no Git - linux-2.6/commitdiff
drivers/net/appletalk: endianness
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Aug 2007 07:03:13 +0000 (03:03 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:05 +0000 (16:52 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/appletalk/ipddp.c
drivers/net/appletalk/ipddp.h

index 56cb967940268874401395726a650ff1d51002e0..1071144edd66fbdf0f594ec0104c065fdee06e82 100644 (file)
@@ -116,7 +116,7 @@ static struct net_device_stats *ipddp_get_stats(struct net_device *dev)
  */
 static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev)
 {
-       u32 paddr = ((struct rtable*)skb->dst)->rt_gateway;
+       __be32 paddr = ((struct rtable*)skb->dst)->rt_gateway;
         struct ddpehdr *ddp;
         struct ipddp_route *rt;
         struct atalk_addr *our_addr;
index 52072fb0c610da46bc0e2491e15f5dcc0265b086..531519da99a324c618f8aaf898c0fee0cdf3ba43 100644 (file)
@@ -14,7 +14,7 @@
 struct ipddp_route
 {
         struct net_device *dev;             /* Carrier device */
-        __u32 ip;                       /* IP address */
+        __be32 ip;                       /* IP address */
         struct atalk_addr at;              /* Gateway appletalk address */
         int flags;
         struct ipddp_route *next;