From owner-freebsd-net@FreeBSD.ORG Tue Jun 4 15:59:33 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B3A9A1EE for ; Tue, 4 Jun 2013 15:59:33 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id 846E61A97 for ; Tue, 4 Jun 2013 15:59:33 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id eh20so671842obb.25 for ; Tue, 04 Jun 2013 08:59:33 -0700 (PDT) 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=lNU/KDBAvYd2ugU3LPtK+GP8dRUgoAW9hyd3/xng+Ug=; b=RkrKKfAPuPx07zjCUKKbFyILf9bUWPVfvvMqo0Eccgm1k+apy8mdlHJbI0qhd2SaXC ZcXSNp+wh9eTgSHVtG4ztgci4uOXfjtxoPZ+MGoG6DhI5bsplQR7p1OAdxE0HTEoR3Fo JrAJ1ysvI8Fi6SMSH4tXsgwA5a1Q07X5yiXPKwqbBTK8iFQDrK8sLYqpJvIavA7nvxIO 45ku5O7TNpR92eQNdBTYRj2axYiwZkK0wxqQBQ2slx8Jc83sotSJGRPlXyufRk/PvUiA slk9oPrYpseIatKnSsCgkb/MG69KUPoTnuV93Y1c3XIoEjeWjs+gCv6qvrww1do4/4zJ 5GDg== MIME-Version: 1.0 X-Received: by 10.60.125.72 with SMTP id mo8mr12230923oeb.11.1370361573176; Tue, 04 Jun 2013 08:59:33 -0700 (PDT) Received: by 10.76.12.200 with HTTP; Tue, 4 Jun 2013 08:59:33 -0700 (PDT) In-Reply-To: <51AE0DD5.2090608@grosbein.net> References: <51AE0DD5.2090608@grosbein.net> Date: Tue, 4 Jun 2013 17:59:33 +0200 Message-ID: Subject: Re: ipfw and tablearg formatting From: Andreas Nilsson To: Eugene Grosbein Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 15:59:33 -0000 On Tue, Jun 4, 2013 at 5:55 PM, Eugene Grosbein wrote: > 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. > There is always something new to discover in the manpage. Thanks. > > 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. > > Ah. No chance of using tablearg for ipv6 fwd rules then I guess. Best regards Andreas