Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Oct 2002 17:45:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Oct 2002 17:45:38 -0500 Received: from out001pub.verizon.net ([206.46.170.140]:65167 "EHLO out001.verizon.net") by vger.kernel.org with ESMTP id ; Thu, 31 Oct 2002 17:45:37 -0500 Message-Id: <200210312349.g9VNnMmf001238@pool-141-150-241-241.delv.east.verizon.net> Date: Thu, 31 Oct 2002 18:49:18 -0500 From: Skip Ford To: Jochen Friedrich Cc: "Randy.Dunlap" , linux-kernel@vger.kernel.org Subject: Re: 2.5.45 ipmr.c syntax error References: <200210310657.g9V6vrCA009366@pool-141-150-241-241.delv.east.verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jochen@scram.de on Thu, Oct 31, 2002 at 12:53:43PM +0100 X-Authentication-Info: Submitted using SMTP AUTH PLAIN at out001.verizon.net from [141.150.241.241] at Thu, 31 Oct 2002 16:51:55 -0600 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 39 Jochen Friedrich wrote: > Hi Skip, > > > - 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)) { > > Shouldn't that be dst_pmtu(&rt->u.dst)? Yep, you're right. Thanks. --- 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/