if (skb_dst(skb))
skb_dst(skb)->ops->update_pmtu(skb_dst(skb), mtu);
+ /* XXX: Temporarily allow fragmentation since DF doesn't
+ * do the right thing with bridging. */
+/*
if (skb->protocol == htons(ETH_P_IP)) {
df |= (old_iph->frag_off&htons(IP_DF));
}
}
#endif
-
+*/
if (tunnel->err_count > 0) {
if (time_before(jiffies,
tunnel->err_time + IPTUNNEL_ERR_TIMEO)) {
if (mtu < 68)
mtu = 68;
+ /* XXX: Set MTU to the maximum possible value. If we are bridged to a
+ * device with a larger MTU then packets will be dropped. */
+ mtu = 65482;
+
return mtu;
}