Messages in this thread Patch in this message | | | Date | Thu, 31 Oct 2002 22:14:39 -0500 | From | Skip Ford <> | Subject | Re: 2.5.45 ipmr.c syntax error |
| |
Miles Lane wrote: > Skip, I tried your patch from: > http://marc.theaimsgroup.com/?l=linux-kernel&m=103604415923099&w=2
I goofed with that patch. This is the correct one. Sorry about that.
--- linux/net/ipv4/ipmr.c~ Thu Oct 31 01:54:40 2002 +++ linux/net/ipv4/ipmr.c Thu Oct 31 01:55:31 2002 @@ -1111,7 +1111,7 @@ { struct dst_entry *dst = skb->dst; - if (skb->len <= dst->pmtu) + if (skb->len <= dst_pmtu(dst)) return dst->output(skb); else return ip_fragment(skb, dst->output); @@ -1167,7 +1167,7 @@ dev = rt->u.dst.dev; - if (skb->len+encap > rt->u.dst.pmtu && (ntohs(iph->frag_off) & IP_DF)) { + if (skb->len+encap > dst_pmtu(&rt->u.dst) && (ntohs(iph->frag_off) & IP_DF)) { /* Do not fragment multicasts. Alas, IPv4 does not allow to send ICMP, so that packets will disappear to blackhole. -- Skip - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |