From owner-freebsd-net Wed Sep 19 11: 3:10 2001 Delivered-To: freebsd-net@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id B992337B407 for ; Wed, 19 Sep 2001 11:03:01 -0700 (PDT) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id TAA48602; Wed, 19 Sep 2001 19:53:45 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200109191753.TAA48602@info.iet.unipi.it> Subject: Re: ipfw: skipto changing value of where I want to skipto? In-Reply-To: <20010919102406.U30377-100000@mail1.hub.org> from "Marc G. Fournier" at "Sep 19, 2001 10:24:53 am" To: "Marc G. Fournier" Date: Wed, 19 Sep 2001 19:53:45 +0200 (CEST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > psychopompus# ipfw add 00661 skipto 00708 ip from any to 136.0.0.0/5 > 00661 skipto 56 ip from any to 136.0.0.0/5 > > why is the 00708 changing to 56? :( because the leading 0's force strtol to believe that the number is octal, then the trailing 8 is considered illegal in the basis so the number is read as 0070 (octal) which is 56 decimal. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message