From owner-freebsd-isp Mon Aug 19 10:31:48 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA16028 for isp-outgoing; Mon, 19 Aug 1996 10:31:48 -0700 (PDT) Received: from lyskamm.dnet.it (lyskamm.dnet.it [194.242.196.14]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA16020 for ; Mon, 19 Aug 1996 10:31:44 -0700 (PDT) Received: (from uucp@localhost) by lyskamm.dnet.it (8.7.5/8.7.3) with UUCP id TAA29906; Mon, 19 Aug 1996 19:38:59 +0200 (MET DST) Received: from localhost (andi@localhost) by fap.dnet.it (8.7.5/8.7.3) with SMTP id TAA01416; Mon, 19 Aug 1996 19:33:14 GMT Date: Mon, 19 Aug 1996 19:33:14 +0000 () From: Andreas Mutschlechner X-Sender: andi@fap To: Tushar Patel cc: freebsd-isp@freebsd.org Subject: Re: tun device problem more info In-Reply-To: <199608162335.XAA12776@ecpi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 16 Aug 1996, Tushar Patel wrote: > Hi, > > I did some more experiment on the "/dev/MAKEDEV" and > I managed to get > > crw------- 1 uucp dialer 52, 10 Aug 16 23:19 tuna > ^^^ > correct minor number > > I have correct minor number, but it has same problem > > "No tunnel device is available" > "open_tun: Device_busy" > > By any chance this could be related to the fact that > I have "maxusers 10" in the generic KERNEL configuration? > > Please help me. > Time ago there was a bug report about this. The problem is ppp itself. The function OpenTunnel in os.c has some flaws: int OpenTunnel(ptun) int *ptun; { int s; char *cp; char *suffix = "0123456789"; <----- gives max tun9 char ifname[IFNAMSIZ]; char devname[12]; strcpy(devname, "/dev/tun0"); for (cp = suffix; *cp; cp++) { devname[8] = *cp; tun_out = open(devname, O_RDWR); if (tun_out >= 0) break; } ---SNIP----- Hope this helps. greets andi