From owner-freebsd-questions Sun Mar 19 9:42:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mostgraveconcern.com (rno-dsl0b-240.gbis.net [216.82.145.240]) by hub.freebsd.org (Postfix) with ESMTP id 6C99137B6E0 for ; Sun, 19 Mar 2000 09:42:36 -0800 (PST) (envelope-from dan@mostgraveconcern.com) Received: from danco (danco.mostgraveconcern.com [10.0.0.2]) by mostgraveconcern.com (8.9.3/8.9.3) with SMTP id JAA24094; Sun, 19 Mar 2000 09:42:27 -0800 (PST) (envelope-from dan@mostgraveconcern.com) Message-ID: <0b8f01bf91ca$7a0da880$0200000a@danco> Reply-To: "Dan O'Connor" From: "Dan O'Connor" To: , "Troy Settle" Cc: Subject: Re: IPFW Pipes / dummy net Date: Sun, 19 Mar 2000 09:42:13 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. --Dan -- Dan O'Connor On Matters of Most Grave Concern http://www.mostgraveconcern.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message