[NET]: __be'ify *_type_trans()

tr_type_trans(), hippi_type_trans() left as-is.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Alexey Dobriyan
2005-07-12 12:08:43 -07:00
committed by David S. Miller
parent 84531c24f2
commit ab611487d8
16 changed files with 20 additions and 27 deletions

View File

@@ -358,10 +358,10 @@ int wanrouter_encapsulate(struct sk_buff *skb, struct net_device *dev,
*/
unsigned short wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
__be16 wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
{
int cnt = skb->data[0] ? 0 : 1; /* there may be a pad present */
unsigned short ethertype;
__be16 ethertype;
switch (skb->data[cnt]) {
case NLPID_IP: /* IP datagramm */
@@ -379,7 +379,7 @@ unsigned short wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
skb->data[cnt+3], dev->name);
return 0;
}
ethertype = *((unsigned short*)&skb->data[cnt+4]);
ethertype = *((__be16*)&skb->data[cnt+4]);
cnt += 6;
break;