Skip to content

Commit

Permalink
net/core: use ntohs for skb->protocol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and David S. Miller committed Jun 30, 2010
1 parent 784e271 commit 70777d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 70777d0

Please sign in to comment.