Bug 14806

Summary: if_tun.ko conflicts with built-in tunnel driver
Product: Base System Reporter: trost <trost>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description trost 1999-11-09 18:50:01 UTC
	If if_tun.ko is loaded over a kernel containing a tunnel driver
	compiled in, "ppp -auto" does not work, although running ppp straight
	does.

Fix: 

Beyond "don't do that," I don't know what to do about the problem.
	It wouldn't be so bad if it weren's such a sneaky problem.
How-To-Repeat: 
	Build a kernel with the line
		pseudo-device   tun     1
	in its config file and boot it.

	Run the following commands
		kldload if_tun.ko
		ppp -auto some_host

	Try to ping the remote end of the PPP link.  Expect an error like
	"host is down."
Comment 1 Brian Somers 1999-11-09 21:26:10 UTC
[.....]
> 	If if_tun.ko is loaded over a kernel containing a tunnel driver
> 	compiled in, "ppp -auto" does not work, although running ppp straight
> 	does.
[.....]	
> 	Beyond "don't do that," I don't know what to do about the problem.
> 	It wouldn't be so bad if it weren's such a sneaky problem.
[.....]

Don't do that :-)  This is a known problem with modules in general.  
It's never necessary to kldload if_tun, as ppp has the smarts to 
figure out that it's needed and kldload it itself.

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>
Comment 2 nbm freebsd_committer freebsd_triage 2000-08-06 00:15:38 UTC
State Changed
From-To: open->closed

"Don't do that".  This also doesn't fail for me.