Date: Tue, 04 Jun 2013 22:55:01 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Andreas Nilsson <andrnils@gmail.com> Cc: FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: ipfw and tablearg formatting Message-ID: <51AE0DD5.2090608@grosbein.net> In-Reply-To: <CAPS9%2BSu=uQG5-s7qmgeUSgnqJscyMhRqXuApo0mkV%2BqZWU8u0g@mail.gmail.com> References: <CAPS9%2BSu=uQG5-s7qmgeUSgnqJscyMhRqXuApo0mkV%2BqZWU8u0g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51AE0DD5.2090608>