From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] remove overzealous checks in REJECT target] Date: Fri, 17 Dec 2004 06:43:39 +0100 Message-ID: <41C2720B.7@trash.net> References: <20041216133959.GH10165@sunbeam.de.gnumonks.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Netfilter Development Mailinglist , yasuyuki.kozakai@toshiba.co.jp Return-path: To: Harald Welte In-Reply-To: <20041216133959.GH10165@sunbeam.de.gnumonks.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Harald Welte wrote: >Hi Patrick! > >I agree with Yasuyuki's proposed changes, do you already have this patch >in your pending queue? > >I'm just asking because there was no follow-up on the list... > I missed it, but the patch is wrong. We must return at least 8 byte of protocol header, so the check can't be removed. The skb_header_pointer part looks fine, I'm going to apply it after getting some sleep. RFC1122: §3.2.2: Every ICMP error message includes the Internet header and at least the first 8 data octets of the datagram that triggered the error; more than 8 octets MAY be sent; this header and data MUST be unchanged from the received datagram. Regards Patrick