|
@@ -484,11 +484,15 @@ vti6_xmit(struct sk_buff *skb, struct net_device *dev, struct flowi *fl)
|
|
|
if (!skb->ignore_df && skb->len > mtu) {
|
|
|
skb_dst(skb)->ops->update_pmtu(dst, NULL, skb, mtu);
|
|
|
|
|
|
- if (skb->protocol == htons(ETH_P_IPV6))
|
|
|
+ if (skb->protocol == htons(ETH_P_IPV6)) {
|
|
|
+ if (mtu < IPV6_MIN_MTU)
|
|
|
+ mtu = IPV6_MIN_MTU;
|
|
|
+
|
|
|
icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu);
|
|
|
- else
|
|
|
+ } else {
|
|
|
icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED,
|
|
|
htonl(mtu));
|
|
|
+ }
|
|
|
|
|
|
return -EMSGSIZE;
|
|
|
}
|