From owner-freebsd-arch Wed May 23 12:44:41 2001 Delivered-To: freebsd-arch@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 5A94037B423 for ; Wed, 23 May 2001 12:44:36 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NJiYY12182; Wed, 23 May 2001 20:44:34 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NJiXF09637; Wed, 23 May 2001 20:44:33 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105231944.f4NJiXF09637@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Brian Somers Cc: Garrett Wollman , freebsd-arch@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: RFC: unit_list routines In-Reply-To: Message from Brian Somers of "Wed, 23 May 2001 18:48:22 BST." <200105231748.f4NHmMF08217@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 May 2001 20:44:33 +0100 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > Using bits when there are large numbers of units gets awkward. > > > > Just wrap it in macros. I almost posted an implementation with my > > last message, but decided that since it was so trivial it would be > > almost insulting for me to do so. > > Not true - I'm too thick skinned to be insulted :oI > > I'll look at a macro implementation. Ok, I've thought about this :-/ I don't think it's practical to do this with bits if someone does # ppp -unit 16777215 I then have to go off and allocate an array of 0x7fffff bytes just to record the fact that someone's using a silly unit number. I think this must be done as a sparce set of ranges.... ie, my original idea seems to still stand. Comments ? -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message