Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36761
b: refs/heads/master
c: 0ac0760
h: refs/heads/master
i:
  36759: 4eb59df
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 284dd75 commit 1a30b46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a50f28c326d20ab4556be1b867ecddf6aefbb88
refs/heads/master: 0ac0760a57a6b1eb75c21a590e578be5dfc2f88b
2 changes: 1 addition & 1 deletion trunk/include/linux/trdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/if_tr.h>

#ifdef __KERNEL__
extern unsigned short tr_type_trans(struct sk_buff *skb, struct net_device *dev);
extern __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev);
extern void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev);
extern struct net_device *alloc_trdev(int sizeof_priv);

Expand Down
12 changes: 6 additions & 6 deletions trunk/net/802/tr.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int tr_rebuild_header(struct sk_buff *skb)
*/

if(trllc->ethertype != htons(ETH_P_IP)) {
printk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n",(unsigned int)htons(trllc->ethertype));
printk("tr_rebuild_header: Don't know how to resolve type %04X addresses ?\n", ntohs(trllc->ethertype));
return 0;
}

Expand All @@ -186,7 +186,7 @@ static int tr_rebuild_header(struct sk_buff *skb)
* it via SNAP.
*/

unsigned short tr_type_trans(struct sk_buff *skb, struct net_device *dev)
__be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev)
{

struct trh_hdr *trh=(struct trh_hdr *)skb->data;
Expand Down Expand Up @@ -229,15 +229,15 @@ unsigned short tr_type_trans(struct sk_buff *skb, struct net_device *dev)
*/

if (trllc->dsap == EXTENDED_SAP &&
(trllc->ethertype == ntohs(ETH_P_IP) ||
trllc->ethertype == ntohs(ETH_P_IPV6) ||
trllc->ethertype == ntohs(ETH_P_ARP)))
(trllc->ethertype == htons(ETH_P_IP) ||
trllc->ethertype == htons(ETH_P_IPV6) ||
trllc->ethertype == htons(ETH_P_ARP)))
{
skb_pull(skb, sizeof(struct trllc));
return trllc->ethertype;
}

return ntohs(ETH_P_TR_802_2);
return htons(ETH_P_TR_802_2);
}

/*
Expand Down

0 comments on commit 1a30b46

Please sign in to comment.