ipfw and tablearg formatting

Eugene Grosbein eugen at grosbein.net
Tue Jun 4 15:55:13 UTC 2013


On 03.06.2013 18:43, Andreas Nilsson wrote:
> Hello,
> 
> Still trying out the tablearg functionality of ipfw and found the following:
> 
> 1)
> # ipfw table 100 add 192.168.0.0/24 10.0.0.1
> # ipfw table 100 list
> 192.168.0.0/24 167772161
> 
> I guess it is correct, but not user friendly. Can't the tablearg part be
> printed as normal dotted decimal?

# ipfw -i table 100 list
192.168.0.0/24 10.0.0.1

man ipfw:

     -i      When listing a table (see the LOOKUP TABLES section below for
             more information on lookup tables), format values as IP
             addresses. By default, values are shown as integers.
> 2)
> 
> # ipfw table 100 add 2a01:280:1::88/64 2a01:280:1::89
> # ipfw table 100 list
> 2a01:280:1::/64 2
> 
> I don't really see any chance of this one working.

At present, values are 32 bit unsigned integers internally and are parsed so.



More information about the freebsd-net mailing list