Bug 1304 - incorrect return
Summary: incorrect return
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 2.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-06-09 11:20 UTC by Peter Childs
Modified: 1996-06-09 12:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Childs 1996-06-09 11:20:01 UTC
 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 :)

Fix: 

change

  return ENXIO;

 to
  
  return EBUSY;
How-To-Repeat: 
 Glance at the code..
Comment 1 gpalmer freebsd_committer freebsd_triage 1996-06-09 12:05:43 UTC
State Changed
From-To: open->closed

Fixed in rev. 1.6.4.2 of /sys/net/if_tun.c