if_tun failed to register (long)

Antoine Jacoutot ajacoutot at lphp.org
Mon Feb 16 02:43:05 PST 2004

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.


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         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

More information about the freebsd-questions mailing list