projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
784e271
)
net/core: use ntohs for skb->protocol
author
Sebastian Andrzej Siewior
<bigeasy@linutronix.de>
Wed, 30 Jun 2010 17:39:19 +0000
(10:39 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Jun 2010 17:39:19 +0000
(10:39 -0700)
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>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 7f390b52caab50f8860fc2ebc6f586e90eda4607..e85cc5fa3c4ee1a5fd247ddf7463a405950610dd 100644
(file)
--- 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)
if (net_ratelimit())
printk(KERN_CRIT "protocol %04x is "
"buggy, dev %s\n",
- skb2->protocol, dev->name);
+ ntohs(skb2->protocol),
+ dev->name);
skb_reset_network_header(skb2);
}