diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 4f2c0df79563..d2b5f6591f1a 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1764,7 +1764,7 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, | |||
1764 | macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + | 1764 | macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + |
1765 | po->tp_reserve; | 1765 | po->tp_reserve; |
1766 | } else { | 1766 | } else { |
1767 | unsigned maclen = skb_network_offset(skb); | 1767 | unsigned int maclen = skb_network_offset(skb); |
1768 | netoff = TPACKET_ALIGN(po->tp_hdrlen + | 1768 | netoff = TPACKET_ALIGN(po->tp_hdrlen + |
1769 | (maclen < 16 ? 16 : maclen)) + | 1769 | (maclen < 16 ? 16 : maclen)) + |
1770 | po->tp_reserve; | 1770 | po->tp_reserve; |