Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2004 11:43:08 +0100
From:      Antoine Jacoutot <ajacoutot@lphp.org>
To:        freebsd-questions@freebsd.org
Subject:   if_tun failed to register (long)
Message-ID:  <200402161143.09024.ajacoutot@lphp.org>

next in thread | raw e-mail | index | archive | help
Hi :)

I've been having the same error for months now under FreeBSD-5.x (5.1, 5.2, 
5.2.1-RC2, 5-CURRENT).
It works anyway, but I'm concerned about this error anyway.
When I boot, ppp is started automatically with rc.conf and I get the following 
error on the console:

kernel: module_register: module if_tun already exists!
kernel: Module if_tun failed to register: 17
kernel: can't re-use a leaf (if_tun_debug)

"device tun" is compiled into my kernel but also loaded as a module !!! :

$ kldstat
Id Refs Address    Size     Name
 1    6 0xc0400000 376afc   kernel
 2    1 0xc0777000 4d978    acpi.ko
 3    1 0xc4670000 4000     logo_saver.ko
 4    1 0xc470f000 4000     if_tun.ko

As I said, everything works, but still, this error is strange.
After looking everywhere without finding any clue about this error, I came to 
the conclusion that it could be my kernel configuration.
Note that also I use kern_securelevel="1".

If you have _any_ idea, I would really appreciate.
This is a brand new system.
Thanks.
Regards,

Antoine

ps:
Here is my KERNELCONF:

machine         i386
cpu             I686_CPU
ident           MCP
options         SCHED_ULE
options         INET
options         INET6
options         FFS
options         SOFTUPDATES
options         UFS_ACL
options         UFS_DIRHASH
options         NFSCLIENT
options         NFSSERVER
options         MSDOSFS
options         CD9660
options         PROCFS
options         PSEUDOFS
options         COMPAT_43
options         COMPAT_FREEBSD4
options         SCSI_DELAY=15000
options         KTRACE
options         SYSVSHM
options         SYSVMSG
options         SYSVSEM
options         _KPOSIX_PRIORITY_SCHEDULING
options         KBD_INSTALL_CDEV
options         AHC_REG_PRETTY_PRINT
options         AHD_REG_PRETTY_PRINT
options         PFIL_HOOKS
device          isa
device          pci
device          fdc
device          ata
device          atadisk
device          atapicd
options         ATA_STATIC_ID
device          scbus
device          da
device          atkbdc
device          atkbd
device          psm
device          vga
device          splash
device          sc
device          agp
device          npx
device          sio
device          ppc
device          ppbus
device          miibus
device          rl
device          xl
device          random
device          loop
device          ether
device          ppp
device          tun
device          pty
device          bpf
device          uhci
device          usb
device          ugen
device          ulpt
device          umass
device          uscanner
options         IPSTEALTH
options         RANDOM_IP_ID
options         SC_DISABLE_REBOOT
options         CPU_ENABLE_SSE
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=100
options         IPDIVERT
options         NETGRAPH
options         NETGRAPH_ETHER
options         NETGRAPH_PPPOE
options         NETGRAPH_SOCKET



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402161143.09024.ajacoutot>