From owner-freebsd-questions Sun Mar 19 16:39:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24]) by hub.freebsd.org (Postfix) with ESMTP id 1BBCE37B6EB for ; Sun, 19 Mar 2000 16:39:17 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat25.x-treme.gr [212.120.197.217]) by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id CAA04793; Mon, 20 Mar 2000 02:39:01 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id CAA72480; Mon, 20 Mar 2000 02:40:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 20 Mar 2000 02:40:39 +0200 From: Giorgos Keramidas To: "Dan O'Connor" Cc: Troy Settle , freebsd-questions@FreeBSD.ORG Subject: Re: IPFW Pipes / dummy net Message-ID: <20000320024039.B72331@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <0b8f01bf91ca$7a0da880$0200000a@danco> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <0b8f01bf91ca$7a0da880$0200000a@danco>; from dan@mostgraveconcern.com on Sun, Mar 19, 2000 at 09:42:13AM -0800 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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