Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2000 02:40:39 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Dan O'Connor" <dan@mostgraveconcern.com>
Cc:        Troy Settle <troy@picus.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: IPFW Pipes / dummy net
Message-ID:  <20000320024039.B72331@hades.hell.gr>
In-Reply-To: <0b8f01bf91ca$7a0da880$0200000a@danco>; from dan@mostgraveconcern.com on Sun, Mar 19, 2000 at 09:42:13AM -0800
References:  <0b8f01bf91ca$7a0da880$0200000a@danco>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 19, 2000 at 09:42:13AM -0800, Dan O'Connor wrote:
> > ipfw add 70000 allow ip from any to any
> >
> >I got a rule with number 4464.  Now this is a strange number of rule to
> >get from 70000, but if one sees the two numbers in hex, it's obvious why
> >it was done so.
> >
> >The number 70000 = 0x11170, when AND'ed with a 16-bit mask, 0xffff,
> >gives 0x1170 = 4464 :)
> 
> Well, you don't even need to do any convoluted math to see that this is a
> simple rollover problem, since
> 
>     70,000 - 65536 = 4464.

I guess I should start thinking in decimal once more.  Bloody CS
departments, they do change the way one counts more often than not these
days...

- Giorgos Keramidas


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000320024039.B72331>