From owner-freebsd-current Sun May 26 10:52:52 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA06414 for current-outgoing; Sun, 26 May 1996 10:52:52 -0700 (PDT) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA06408 for ; Sun, 26 May 1996 10:52:47 -0700 (PDT) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id MAA28153; Sun, 26 May 1996 12:50:43 -0500 From: Joe Greco Message-Id: <199605261750.MAA28153@brasil.moneng.mei.com> Subject: Re: ppp not detecting more than 1 tun device To: joerg_wunsch@uriah.heep.sax.de Date: Sun, 26 May 1996 12:50:42 -0500 (CDT) Cc: xaa@stack.urc.tue.nl, freebsd-current@freebsd.org In-Reply-To: <199605261700.TAA02431@uriah.heep.sax.de> from "J Wunsch" at May 26, 96 07:00:28 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > As Mark Huizer wrote: > > Hmm... I mailed this using send-pr, but have never seen it appear in > > buglists :-( > > I've seen it (but can't comment on this). Hi, I've seen this! :-) I grabbed the -current ppp code and stuck it on a 2.1R box. The second ifc was never found. The problem lies within the code that searched /dev/tun%d for the next device. I believe my fix was to comment out the lines that read something like if (errno == ESOMETHINGOROTHER) { interface = MAXIF + 1; break; } and I believe the file was os.c. It is not a correct fix, but the problem was that the open() was returning that particular error (perhaps ENXIO) on failure, although in reality it should probably have reported that the device was busy. I thought it was due to some mis-synchronization between -current code and 2.1R, so I didn't consider it a bug. I would go look at my fix for real but it's behind a firewall. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968