From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] proto_to_name duplication Date: Tue, 25 Jul 2006 03:21:33 +0200 Message-ID: <44C5721D.70806@trash.net> References: <20060721225612.GA3951@linuxace.com> <44C22C7C.2080909@trash.net> <200607240538.k6O5cYwP024759@toshiba.co.jp> <20060724144950.GA8973@linuxace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org, Yasuyuki KOZAKAI Return-path: To: Phil Oester In-Reply-To: <20060724144950.GA8973@linuxace.com> 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 Phil Oester wrote: > On Mon, Jul 24, 2006 at 02:38:32PM +0900, Yasuyuki KOZAKAI wrote: > >>This allows iptables to send the invalid entry to kernel when >>people do 'iptables -p icmp -m multiport --sports 10000 ...', >>for example. Of cause kernel can reject this, but iptables cannot >>output useful error message after that. >> >>check_proto() should not allow protocols other than tcp, udp, sctp and >>dccp. That's why libip{,6}t_multiport have the other version of >>proto_to_name(). >> >>Please revert this or add check for protocol number. > > > Good catch. Probably should just revert this one for simplicity. Agreed, I've reverted it. Thanks.