|
@@ -6472,7 +6472,7 @@ static unsigned int igb_get_headlen(unsigned char *data,
|
|
|
return hdr.network - data;
|
|
|
|
|
|
/* record next protocol if header is present */
|
|
|
- if (!hdr.ipv4->frag_off)
|
|
|
+ if (!(hdr.ipv4->frag_off & htons(IP_OFFSET)))
|
|
|
nexthdr = hdr.ipv4->protocol;
|
|
|
} else if (protocol == __constant_htons(ETH_P_IPV6)) {
|
|
|
if ((hdr.network - data) > (max_len - sizeof(struct ipv6hdr)))
|