From owner-freebsd-stable@FreeBSD.ORG Sun Nov 24 15:43:23 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 600C7DB4; Sun, 24 Nov 2013 15:43:23 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CCB32267C; Sun, 24 Nov 2013 15:43:22 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id n12so1850662wgh.14 for ; Sun, 24 Nov 2013 07:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ce1rm9lEZ8IiSIg+MfBASYXQY2V87SpHFLCEGFqIBqM=; b=Ji6FrspQk7GgBlwzvJJ3nYH1bsdVhiLvJtR92mA/IKNG5Jhx02e+trBlEJ2EjW+IYl s3fSWQSCA3f7tZuwvMI6TBJR+IkV81o49qyOudnEVGcsra0u28mMycKSMlIgjzez7gMR cXz/nnRGZOygtq63IvkECdao7r5EDQH9e693Y+8jkHSioEFnBURFn+AFW8rleq6jkcA3 OxUWFG9CFjcH23kHjGesSfspuwxfTIqYXAhALgMuPUwaMQtBjQ1SwlDvzuBzs5gmhKZP Xw1Yy/vO+BM64mYq38xE0IUxGnuhUiUnrmH5JwXkWGALtA3bZgnifmSt7C2K11OIVffU 1uIw== MIME-Version: 1.0 X-Received: by 10.180.103.233 with SMTP id fz9mr10340533wib.20.1385307801283; Sun, 24 Nov 2013 07:43:21 -0800 (PST) Received: by 10.216.119.200 with HTTP; Sun, 24 Nov 2013 07:43:21 -0800 (PST) In-Reply-To: <52911993.8010108@ipfw.ru> References: <52911993.8010108@ipfw.ru> Date: Sun, 24 Nov 2013 17:43:21 +0200 Message-ID: Subject: Re: ipfw table add problem From: =?ISO-8859-1?Q?=D6zkan_KIRIK?= To: "Alexander V. Chernikov" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: freebsd-ipfw , freebsd-stable , Luigi Rizzo X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Nov 2013 15:43:23 -0000 Hi, I tested patch. This patch solves, ipfw table 1 add 4899 But, ipfw table 1 add 10.2.3.01 works incorrectly. output is below. # ./ipfw table 1 flush # ./ipfw table 1 add 10.2.3.01 # ./ipfw table 1 list 0.0.0.10/32 0 On Sat, Nov 23, 2013 at 11:09 PM, Alexander V. Chernikov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 19.11.2013 23:55, =EF=BF=96zkan KIRIK wrote: > > Hi, > > > > I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. I am trying > > to add port number to ipfw tables. But there is something strange > > : Problem is easily repeatable. > > > > #ipfw table 1 flush #ipfw table 1 add 4899 #ipfw table 1 list ::/0 > > 0 > > > > #ipfw table 1 flush #ipfw table 1 add 10.2.3.01 ( not > > 10.0.0.1, the last 1 has 0 as prefix ) #ipfw table 1 list ::/0 0 > > > > #ipfw table 1 delete ::/0 ipfw: setsockopt(IP_FW_TABLE_XDEL): No > > such process > > > > > > I guess that, this problem is related to radix mask calculation > > problem/fix. > Hello. > I'm sorry, it seems that key lookups were broken for quite a long time. > > Can you apply attached patch, rebuild ipfw(8) binary and see if this > helps? > > > > > > Is there a quick solution for this. Best, regards, > > _______________________________________________ > > freebsd-ipfw@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To > > unsubscribe, send any mail to > > "freebsd-ipfw-unsubscribe@freebsd.org" > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.20 (FreeBSD) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlKRGZIACgkQwcJ4iSZ1q2n0hgCgkiqRewC61LptUaG4ejvHIg0q > PawAoID3nfNxh3sTOVE/iKNtfjHpl9u0 > =3D6GdO > -----END PGP SIGNATURE----- >