Commit c07a729d authored by David S. Miller's avatar David S. Miller

[IPV6]: Check output fragmentation using dst_pmtu not dev->mtu.

parent 6ec6f76e
...@@ -141,7 +141,7 @@ int ip6_output2(struct sk_buff *skb) ...@@ -141,7 +141,7 @@ int ip6_output2(struct sk_buff *skb)
int ip6_output(struct sk_buff *skb) int ip6_output(struct sk_buff *skb)
{ {
if ((skb->len > skb->dst->dev->mtu || skb_shinfo(skb)->frag_list)) if ((skb->len > dst_pmtu(skb->dst) || skb_shinfo(skb)->frag_list))
return ip6_fragment(skb, ip6_output2); return ip6_fragment(skb, ip6_output2);
else else
return ip6_output2(skb); return ip6_output2(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment