Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70777d03 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David S. Miller
Browse files

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: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 784e2710
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
			}