|
@@ -140,10 +140,12 @@ static int __xfrm6_output(struct sk_buff *skb)
|
|
{
|
|
{
|
|
struct dst_entry *dst = skb_dst(skb);
|
|
struct dst_entry *dst = skb_dst(skb);
|
|
struct xfrm_state *x = dst->xfrm;
|
|
struct xfrm_state *x = dst->xfrm;
|
|
- int mtu = xfrm_skb_dst_mtu(skb);
|
|
|
|
|
|
+ int mtu;
|
|
|
|
|
|
- if (mtu < IPV6_MIN_MTU)
|
|
|
|
- mtu = IPV6_MIN_MTU;
|
|
|
|
|
|
+ if (skb->protocol == htons(ETH_P_IPV6))
|
|
|
|
+ mtu = ip6_skb_dst_mtu(skb);
|
|
|
|
+ else
|
|
|
|
+ mtu = dst_mtu(skb_dst(skb));
|
|
|
|
|
|
if (skb->len > mtu && xfrm6_local_dontfrag(skb)) {
|
|
if (skb->len > mtu && xfrm6_local_dontfrag(skb)) {
|
|
xfrm6_local_rxpmtu(skb, mtu);
|
|
xfrm6_local_rxpmtu(skb, mtu);
|