problem with ng_device as tun replacement
Tomas Svensson
tomas at tutus.se
Fri Feb 9 12:43:18 UTC 2007
Hi,
I am trying to replace the tun interface using netgraph by linking
ng_device and ng_iface:
ngctl mkpeer iface dummy inet
ngctl mkpeer ng0: device inet inet
then I try to use it as a drop-in replacement for tun, but it doesn't
really work:
1. If I send an IP packet through /dev/ngd0 (after doing a normal
open()), the packet doesn't get sent until I write a second packet to
the device.
2. If i route packets to ng0: it works even worse, with very long and
strange delays.
I can do the same with tun and it works fine. I also tried using the
netgraph user library to open a socket, and this works too (but I can't
use it since the performance is very poor).
Any ideas?
-Tomas
More information about the freebsd-net
mailing list