diff options
Diffstat (limited to 'drivers/net/appletalk/ipddp.c')
-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) | |||
145 | 145 | ||
146 | /* Create the Extended DDP header */ | 146 | /* Create the Extended DDP header */ |
147 | ddp = (struct ddpehdr *)skb->data; | 147 | ddp = (struct ddpehdr *)skb->data; |
148 | ddp->deh_len = skb->len; | 148 | ddp->deh_len_hops = htons(skb->len + (1<<10)); |
149 | ddp->deh_hops = 1; | ||
150 | ddp->deh_pad = 0; | ||
151 | ddp->deh_sum = 0; | 149 | ddp->deh_sum = 0; |
152 | 150 | ||
153 | /* | 151 | /* |
@@ -170,7 +168,6 @@ static int ipddp_xmit(struct sk_buff *skb, struct net_device *dev) | |||
170 | ddp->deh_sport = 72; | 168 | ddp->deh_sport = 72; |
171 | 169 | ||
172 | *((__u8 *)(ddp+1)) = 22; /* ddp type = IP */ | 170 | *((__u8 *)(ddp+1)) = 22; /* ddp type = IP */ |
173 | *((__u16 *)ddp)=ntohs(*((__u16 *)ddp)); /* fix up length field */ | ||
174 | 171 | ||
175 | skb->protocol = htons(ETH_P_ATALK); /* Protocol has changed */ | 172 | skb->protocol = htons(ETH_P_ATALK); /* Protocol has changed */ |
176 | 173 | ||