Date: Wed, 19 Sep 2001 19:53:45 +0200 (CEST) From: Luigi Rizzo <luigi@info.iet.unipi.it> To: "Marc G. Fournier" <scrappy@hub.org> Cc: freebsd-net@FreeBSD.ORG Subject: Re: ipfw: skipto changing value of where I want to skipto? Message-ID: <200109191753.TAA48602@info.iet.unipi.it> In-Reply-To: <20010919102406.U30377-100000@mail1.hub.org> from "Marc G. Fournier" at "Sep 19, 2001 10:24:53 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109191753.TAA48602>