Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 2013 17:43:21 +0200
From:      =?ISO-8859-1?Q?=D6zkan_KIRIK?= <ozkan.kirik@gmail.com>
To:        "Alexander V. Chernikov" <melifaro@ipfw.ru>
Cc:        freebsd-ipfw <freebsd-ipfw@freebsd.org>, freebsd-stable <freebsd-stable@freebsd.org>, Luigi Rizzo <rizzo@iet.unipi.it>
Subject:   Re: ipfw table add problem
Message-ID:  <CAAcX-AEt_i8RUfmMy6WLnER0X=uLk5A1=oj911k-nyMJEghRLw@mail.gmail.com>
In-Reply-To: <52911993.8010108@ipfw.ru>
References:  <CAAcX-AGDZbFn5RmhLBBn2PPWRPcsFUnea5MgTc7nuXGD8Ge53A@mail.gmail.com> <52911993.8010108@ipfw.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<melifaro@ipfw.ru>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-----
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AEt_i8RUfmMy6WLnER0X=uLk5A1=oj911k-nyMJEghRLw>