summaryrefslogtreecommitdiffstats
path: root/net/ipv6/anycast.c
diff options
context:
space:
mode:
authorWei Yongjun2008-08-01 05:46:47 +0200
committerDavid S. Miller2008-08-01 05:46:47 +0200
commit77e2f14f71d68d05945f1d30ca55b5194d6ab1ce (patch)
treeedbc4034a01f2e037a1be42fc2d39f33d1b44d3d /net/ipv6/anycast.c
parentipvs: Move userspace definitions to include/linux/ip_vs.h (diff)
downloadkernel-qcow2-linux-77e2f14f71d68d05945f1d30ca55b5194d6ab1ce.tar.gz
kernel-qcow2-linux-77e2f14f71d68d05945f1d30ca55b5194d6ab1ce.tar.xz
kernel-qcow2-linux-77e2f14f71d68d05945f1d30ca55b5194d6ab1ce.zip
ipv6: Fix ip6_xmit to send fragments if ipfragok is true
SCTP used ip6_xmit() to send fragments after received ICMP packet too big message. But while send packet used ip6_xmit, the skb->local_df is not initialized. So when skb if enter ip6_fragment(), the following code will discard the skb. ip6_fragment(...) { if (!skb->local_df) { ... return -EMSGSIZE; } ... } SCTP do the following step: 1. send packet ip6_xmit(skb, ipfragok=0) 2. received ICMP packet too big message 3. if PMTUD_ENABLE: ip6_xmit(skb, ipfragok=1) This patch fixed the problem by set local_df if ipfragok is 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>
Diffstat (limited to 'net/ipv6/anycast.c')
0 files changed, 0 insertions, 0 deletions