===== net/ipv4/xfrm4_policy.c 1.16 vs edited ===== --- 1.16/net/ipv4/xfrm4_policy.c 2005-02-14 14:59:25 +11:00 +++ edited/net/ipv4/xfrm4_policy.c 2005-02-16 22:01:56 +11:00 @@ -235,10 +235,8 @@ static void xfrm4_update_pmtu(struct dst_entry *dst, u32 mtu) { - struct dst_entry *path = dst->path; - - if (mtu < 68 + dst->header_len) - return; + struct xfrm_dst *xdst = (struct xfrm_dst *)dst; + struct dst_entry *path = xdst->route; path->ops->update_pmtu(path, mtu); } ===== net/ipv6/xfrm6_policy.c 1.27 vs edited ===== --- 1.27/net/ipv6/xfrm6_policy.c 2005-02-14 14:59:25 +11:00 +++ edited/net/ipv6/xfrm6_policy.c 2005-02-16 22:03:06 +11:00 @@ -243,12 +243,10 @@ static void xfrm6_update_pmtu(struct dst_entry *dst, u32 mtu) { - struct dst_entry *path = dst->path; + struct xfrm_dst *xdst = (struct xfrm_dst *)dst; + struct dst_entry *path = xdst->route; - if (mtu >= IPV6_MIN_MTU && mtu < dst_pmtu(dst)) - path->ops->update_pmtu(path, mtu); - - return; + path->ops->update_pmtu(path, mtu); } static struct dst_ops xfrm6_dst_ops = {