Skip to content

Commit 11f920d

Browse files
MiaoheLindavem330
authored andcommitted
net: Use helper function ip_is_fragment()
Use helper function ip_is_fragment() to check ip fragment. Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 47260ba commit 11f920d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/skbuff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4853,7 +4853,7 @@ static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate)
48534853
if (err < 0)
48544854
goto out;
48554855

4856-
if (ip_hdr(skb)->frag_off & htons(IP_OFFSET | IP_MF))
4856+
if (ip_is_fragment(ip_hdr(skb)))
48574857
fragment = true;
48584858

48594859
off = ip_hdrlen(skb);

0 commit comments

Comments
 (0)