From owner-freebsd-bugs Sun Jun 9 03:20:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA04712 for bugs-outgoing; Sun, 9 Jun 1996 03:20:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA04689; Sun, 9 Jun 1996 03:20:02 -0700 (PDT) Resent-Date: Sun, 9 Jun 1996 03:20:02 -0700 (PDT) Resent-Message-Id: <199606091020.DAA04689@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, pjchilds@imforei.apana.org.au 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 DAA04384 for ; Sun, 9 Jun 1996 03:19:11 -0700 (PDT) Received: (from pjchilds@localhost) by al.imforei.apana.org.au (8.7.5/8.7.3) id TAA24005; Sun, 9 Jun 1996 19:49:03 +0930 (CST) Message-Id: <199606091019.TAA24005@al.imforei.apana.org.au> Date: Sun, 9 Jun 1996 19:49:03 +0930 (CST) From: Peter Childs Reply-To: pjchilds@imforei.apana.org.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1304: kernel tunnel bug Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1304 >Category: kern >Synopsis: incorrect return >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 9 03:20:01 PDT 1996 >Last-Modified: >Originator: Peter Childs >Organization: Peter Childs --- http://www.imforei.apana.org.au/~pjchilds >Release: FreeBSD 2.1-STABLE i386 >Environment: 2.1-stable CTM'd to 116. >Description: Line 150 of /sys/net/if_tun.c returns ENXIO when it should return EBUSY. This can cause problems if the ppp code assumes because device 0 returned ENXIO that no other devices will be available (which would be sensible), and terminates its loop without assigning a tunnel device. The current stable :) os.c code doesn't, but thats broken in its own special way anyway :) >How-To-Repeat: Glance at the code.. >Fix: change return ENXIO; to return EBUSY; >Audit-Trail: >Unformatted: