Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 22:31:16 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        freebsd-arch@FreeBSD.ORG, brian@Awfulhak.org
Subject:   Re: RFC: unit_list routines 
Message-ID:  <200105232131.f4NLVGF11782@hak.lan.Awfulhak.org>
In-Reply-To: Message from Brian Somers <brian@Awfulhak.org>  of "Wed, 23 May 2001 22:09:27 BST." <200105232109.f4NL9RF11365@hak.lan.Awfulhak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Where did I put that smoke....
> 
> Anyone care to try
> 
> # ppp -unit 16777215
> 
> I don't care for the consistency of the results (/dev/tun16777215 is 
> created ok, but seems to be talking to interface tun0).  Is subr_bus.c 
> *really* trying to allocate 0xffffff device_t pointers and set them 
> all except the last to NULL ?  That's 67Mb of memory.

No, I mistyped the command line.  When I actually type the above the 
device_t * malloc fails (M_NOWAIT).  As it turns out, because struct 
ifnet's if_unit is a short, allocating a tun unit > 32767 fails, but 
unfortunately (due to another bug) creates an interface with a 
wrapped unit number.

I guess this provides a practical limit unit as far as tun is concerned.
-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
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




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