netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open when built in, must be modular
@ 2004-11-19 23:08 Andrew Morton
  2004-11-20  5:27 ` Michael Renzmann
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2004-11-19 23:08 UTC (permalink / raw)
  To: netdev



Begin forwarded message:

Date: Fri, 19 Nov 2004 14:19:35 -0800
From: bugme-daemon@osdl.org
To: bugme-new@lists.osdl.org
Subject: [Bugme-new] [Bug 3777] New: tun driver fails to open when built in, must be modular


http://bugme.osdl.org/show_bug.cgi?id=3777

           Summary: tun driver fails to open when built in, must be modular
    Kernel Version: 2.6.10-rc2
            Status: NEW
          Severity: normal
             Owner: jgarzik@pobox.com
         Submitter: bill@crowellsystems.com


Distribution: slackware/mfxlinux
Hardware Environment:i386
Software Environment:
Problem Description: kernel will not assign/open a tun device when tun.o is
compiled as a built-in. ifconfig gives 'unable to open /dev/net/tun' error.
compiling as a module fixes.

Steps to reproduce:
Compile kernel with tun/tap device driver as a built-in. Run ifconfig to see
error. recompile as a module, modprobe tun and run ifconfig - no error.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open when built in, must be modular
  2004-11-19 23:08 Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open when built in, must be modular Andrew Morton
@ 2004-11-20  5:27 ` Michael Renzmann
  2004-11-20  5:32   ` Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open whenbuilt " shemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Renzmann @ 2004-11-20  5:27 UTC (permalink / raw)
  To: netdev

Hi.

Andrew Morton wrote:
> Problem Description: kernel will not assign/open a tun device when tun.o is
> compiled as a built-in. ifconfig gives 'unable to open /dev/net/tun' error.
> compiling as a module fixes.

If anyone can give me a small general hints for what might be the cause 
of this problem, I could take a look at it. I already have some patches 
for tun.o (that needs to be sent to the maintainer), another one doesn't 
hurt :) But since I'm not yet too experienced with programming of kernel 
modules, any help would be appreciated.

Bye, Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open whenbuilt in, must be modular
  2004-11-20  5:27 ` Michael Renzmann
@ 2004-11-20  5:32   ` shemminger
  0 siblings, 0 replies; 3+ messages in thread
From: shemminger @ 2004-11-20  5:32 UTC (permalink / raw)
  To: Michael Renzmann; +Cc: netdev

> Hi.
>
> Andrew Morton wrote:
>> Problem Description: kernel will not assign/open a tun device when tun.o
>> is
>> compiled as a built-in. ifconfig gives 'unable to open /dev/net/tun'
>> error.
>> compiling as a module fixes.
>
> If anyone can give me a small general hints for what might be the cause
> of this problem, I could take a look at it. I already have some patches
> for tun.o (that needs to be sent to the maintainer), another one doesn't
> hurt :) But since I'm not yet too experienced with programming of kernel
> modules, any help would be appreciated.
>
> Bye, Mike
>

See if it successfully registers with the misc driver (misc_register).
I suspect it is an initialization order type thing. Probably the
code to register with the misc driver (to create the device) should
just be delayed until the network device is brought up (ie dev->open)
is called.

Good luck.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-20  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-19 23:08 Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open when built in, must be modular Andrew Morton
2004-11-20  5:27 ` Michael Renzmann
2004-11-20  5:32   ` Fw: [Bugme-new] [Bug 3777] New: tun driver fails to open whenbuilt " shemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).