diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-26 21:22:08 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 17:53:58 -0700 |
commit | 2a50f28c326d20ab4556be1b867ecddf6aefbb88 (patch) | |
tree | 6890abb1bf8ebfadca86b19bceb48502bda47001 /drivers/net/appletalk | |
parent | 82fe7c924e61f9444b376498496942d41fbe9d26 (diff) | |
download | blackbird-op-linux-2a50f28c326d20ab4556be1b867ecddf6aefbb88.tar.gz blackbird-op-linux-2a50f28c326d20ab4556be1b867ecddf6aefbb88.zip |
[ATALK]: endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/appletalk')
-rw-r--r-- | drivers/net/appletalk/ipddp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c index 7f7dd450226a..b98592a8bac8 100644 --- a/drivers/net/appletalk/ipddp.c +++ b/drivers/net/appletalk/ipddp.c @@ -145,9 +145,7 @@ static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev) /* Create the Extended DDP header */ ddp = (struct ddpehdr *)skb->data; - ddp->deh_len = skb->len; - ddp->deh_hops = 1; - ddp->deh_pad = 0; + ddp->deh_len_hops = htons(skb->len + (1<<10)); ddp->deh_sum = 0; /* @@ -170,7 +168,6 @@ static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev) ddp->deh_sport = 72; *((__u8 *)(ddp+1)) = 22; /* ddp type = IP */ - *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); /* fix up length field */ skb->protocol = htons(ETH_P_ATALK); /* Protocol has changed */ |