patch-2.4.19 linux-2.4.19/net/ipv4/ipip.c
Next file: linux-2.4.19/net/ipv4/netfilter/Config.in
Previous file: linux-2.4.19/net/ipv4/ipconfig.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/net/ipv4/ipip.c
- Orig date:
Wed Oct 17 14:16:39 2001
diff -urN linux-2.4.18/net/ipv4/ipip.c linux-2.4.19/net/ipv4/ipip.c
@@ -572,7 +572,11 @@
goto tx_error;
}
- mtu = rt->u.dst.pmtu - sizeof(struct iphdr);
+ if (tiph->frag_off)
+ mtu = rt->u.dst.pmtu - sizeof(struct iphdr);
+ else
+ mtu = skb->dst ? skb->dst->pmtu : dev->mtu;
+
if (mtu < 68) {
tunnel->stat.collisions++;
ip_rt_put(rt);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)