aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2010-06-30 13:39:19 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-30 13:39:19 -0400
commit70777d03466e7a8a41b0d34677454c92f4e93d89 (patch)
tree81c33a8146d2e4ba2caee749d31fccea91073390 /net/core
parent784e2710ce3588d8316dc8efac9ecbebaeaf7c35 (diff)
net/core: use ntohs for skb->protocol
This is only noticed by people that are not doing everything correct in the first place. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 7f390b52caab..e85cc5fa3c4e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1537,7 +1537,8 @@ static void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
1537 if (net_ratelimit()) 1537 if (net_ratelimit())
1538 printk(KERN_CRIT "protocol %04x is " 1538 printk(KERN_CRIT "protocol %04x is "
1539 "buggy, dev %s\n", 1539 "buggy, dev %s\n",
1540 skb2->protocol, dev->name); 1540 ntohs(skb2->protocol),
1541 dev->name);
1541 skb_reset_network_header(skb2); 1542 skb_reset_network_header(skb2);
1542 } 1543 }
1543 1544