Skip to content

Commit 283d07a

Browse files
Wei Yongjundavem330
authored andcommitted
ipv6: Do not drop packet if skb->local_df is set to true
The old code will drop IPv6 packet if ipfragok is not set, since ipfragok is obsoleted, will be instead by used skb->local_df, so this check must be changed to skb->local_df. This patch fix this problem and not drop packet if skb->local_df is set to true. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f880374 commit 283d07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ip6_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ int ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
269269
skb->mark = sk->sk_mark;
270270

271271
mtu = dst_mtu(dst);
272-
if ((skb->len <= mtu) || ipfragok || skb_is_gso(skb)) {
272+
if ((skb->len <= mtu) || skb->local_df || skb_is_gso(skb)) {
273273
IP6_INC_STATS(ip6_dst_idev(skb->dst),
274274
IPSTATS_MIB_OUTREQUESTS);
275275
return NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, dst->dev,

0 commit comments

Comments
 (0)