From owner-freebsd-stable Sun Jun 9 03:11:30 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA01335 for stable-outgoing; Sun, 9 Jun 1996 03:11:30 -0700 (PDT) Received: from al.imforei.apana.org.au (al.imforei.apana.org.au [202.12.89.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA01300 for ; Sun, 9 Jun 1996 03:11:22 -0700 (PDT) Received: (from pjchilds@localhost) by al.imforei.apana.org.au (8.7.5/8.7.3) id TAA23813; Sun, 9 Jun 1996 19:41:05 +0930 (CST) From: Peter Childs Message-Id: <199606091011.TAA23813@al.imforei.apana.org.au> Subject: ctm-114 breaks ppp (limit of 10 tun devices) To: freebsd-stable@freebsd.org Date: Sun, 9 Jun 1996 19:41:05 +0930 (CST) Cc: davo@katy.apana.org.au X-Mailer: ELM [version 2.4ME+ PL13 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gday. Talking 2.1-stable ctm release 114. the changes to /usr/src/usr.sbin/ppp/os.c, function OpenTunnel(ptun) indicated to me that there can only be tunnel devices from 0->9... its a neat loop, but perhaps it belongs in a obstfucated (that word) code competition. the plain old for loop in previous versions seemed to do the trick just as well and only limited us to 256 tun devices... 10 tun devices is just too small on a 38 port server. also line 150 of /sys/net/if_tun.c should return EBUSY rather than ENXIO... Peter -- Peter Childs --- http://www.imforei.apana.org.au/~pjchilds Active APANA SA Member --- Author PopWatch + Inf-HTML Email: pjchilds@imforei.apana.org.au Fax: 61-8-82784742