Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

if_tun broken?



Hi !

When running a -current i386 kernel as of 20160902 (own and daily builds) and a 7.99.16 userland the tun interface seem broken.

Data received via vtund (tty side) is seen and correctly received (routes are recognized, tcpdump works)

Interfaces seem correctly configured:
Gateway# ifconfig tun0
tun0: flags=51<UP,POINTOPOINT,RUNNING> mtu 1500
        inet 10.0.0.200 -> 10.0.0.1 netmask 0xffffffff
Gateway# ifconfig tun1
tun1: flags=51<UP,POINTOPOINT,RUNNING> mtu 1500
        inet 10.0.0.200 -> 10.200.100.1 netmask 0xffffffff

tundebug=1 gives:

tun0: tunpoll
tun0: tunpoll waiting
tun0: tunwrite
tun0: tun_output
tun0: not ready 03
tun0: tunpoll
tun0: tunpoll waiting
tun0: tunpoll
tun0: tunpoll waiting
tun0: tunwrite
tun0: tun_output
tun0: not ready 03

Thus the interface is not ready. TUN_IASET is not set. The IFADDR_READER_FOREACH(ifa, ifp) loop in tuncreate() does not find any addresses tough ifconfig list them.

Thus something seems to be broken here - any ideas?
Must userland match though ifconfig output and behavior looks fine?
Can this be replicated?

Best regards,
  Frank




Home | Main Index | Thread Index | Old Index