net: Use helper function ip_is_fragment()
Use helper function ip_is_fragment() to check ip fragment. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
47260ba937
commit
11f920d2aa
@@ -4853,7 +4853,7 @@ static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate)
|
|||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (ip_hdr(skb)->frag_off & htons(IP_OFFSET | IP_MF))
|
if (ip_is_fragment(ip_hdr(skb)))
|
||||||
fragment = true;
|
fragment = true;
|
||||||
|
|
||||||
off = ip_hdrlen(skb);
|
off = ip_hdrlen(skb);
|
||||||
|
Reference in New Issue
Block a user