Date: Mon, 19 Aug 1996 19:33:14 +0000 () From: Andreas Mutschlechner <andi@fap.dnet.it> To: Tushar Patel <tushar@ecpi.com> Cc: freebsd-isp@freebsd.org Subject: Re: tun device problem more info Message-ID: <Pine.BSF.3.95.960819192804.1313A-100000@fap> In-Reply-To: <199608162335.XAA12776@ecpi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.960819192804.1313A-100000>
