From owner-freebsd-hackers Wed Dec 11 19:19:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF3D537B404; Wed, 11 Dec 2002 19:19:10 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15F8243EC5; Wed, 11 Dec 2002 19:19:10 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id gBC3IeBF015325; Wed, 11 Dec 2002 22:18:41 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 11 Dec 2002 22:18:40 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ian Dowse Cc: Luigi Rizzo , Alexander Langer , Patrick Soltani , freebsd-hackers@FreeBSD.ORG Subject: Re: panic: icmp_error: bad length In-Reply-To: <200212120116.aa58562@salmon.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG BTW, if this bug exists in 5.0 for the same reasons (or even different ones), we should try to generate a fix ASAP and get it committed. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Thu, 12 Dec 2002, Ian Dowse wrote: > In message <20021211170227.A79864@xorpc.icir.org>, Luigi Rizzo writes: > >the diagnosis looks reasonable, though i do not remember changing > >anything related to this between 4.6 and 4.7 so i wonder why the > >error did not appear in earlier versions of the code. > > Yes strange - actually, it looks like the "THERE IS NO FUNCTIONAL > OR EXTERNAL API CHANGE IN THIS COMMIT" commit may be to blame :-) > Some fragments below. > > Ian > > bridge.c 1.16.2.2: > +#ifdef PFIL_HOOKS > ... > - * before calling the firewall, swap fields the same as IP does. > - * here we assume the pkt is an IP one and the header is contiguous > ... > - ip = mtod(m0, struct ip *); > - NTOHS(ip->ip_len); > - NTOHS(ip->ip_off); > > ip_fw.c 1.131.2.34: > - if (0 && BRIDGED) { /* not yet... */ > - offset = (ntohs(ip->ip_off) & IP_OFFMASK); > + if (BRIDGED) { /* bridged packets are as on the wire */ > + ip_off = ntohs(ip->ip_off); > ip_len = ntohs(ip->ip_len); > } else { > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message