ipfw table add problem

Alexander V. Chernikov melifaro at FreeBSD.org
Sun Nov 24 19:56:51 UTC 2013


On 24.11.2013 19:43, Özkan KIRIK wrote:
> Hi,
> 
> I tested patch. This patch solves, ipfw table 1 add 4899
Ok. So I'll commit this fix soon.
> 
> 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
inet_pton() does not recognize this as valid IPv4 address, so it is
treated as usigned unteger key. It looks like this behavior is mentioned
in STANDARDS section.
> # ./ipfw table 1 list
> 0.0.0.10/32 0
> 
> 
> 
> 
> On Sat, Nov 23, 2013 at 11:09 PM, Alexander V. Chernikov
> <melifaro at ipfw.ru>wrote:
> 
> On 19.11.2013 23:55, ᅱzkan 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 at freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To
>>>> unsubscribe, send any mail to
>>>> "freebsd-ipfw-unsubscribe at freebsd.org"
>>>>
> 
>>
> _______________________________________________
> freebsd-ipfw at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at freebsd.org"
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20131124/c8243560/attachment.sig>


More information about the freebsd-ipfw mailing list