Re: question regarding tap/tun devices




On Mon, 29 May 2006, Brooks Davis wrote:

On Sun, May 28, 2006 at 08:33:32PM +0200, Goran Gajic wrote:
I'm running 7.0-CURRENT build Thu May 25 23:17:10 CEST 2006 GENERIC config.
While playing with dynamips emulator which uses tap I've noticed that
ifconifg tun0 create or ifconfig tap0 create doesn't work (this doesn't
have anything to do with emulator which works great).

These interfaces don't use the network interface cloning interface and thus can not be created with ifconfig. This should be fixed, but the /dev based cloning hackes they use make this difficult.

I've never quite understood if this is a problem or a benefit. Devfs-cloning of tap and tun are very convenient from an application writer perspective -- you just open /dev/tap or /dev/tun, and magic happens. With our current ifnet cloning interface, is it possible to say "atomically create and return the next available interface number"?

Robert N M Watson
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: question regarding tap/tun devices
    ... While playing with dynamips emulator which uses tap I've noticed that ... ifconifg tun0 create or ifconfig tap0 create doesn't work (this doesn't ... These interfaces don't use the network interface cloning interface and ...
    (freebsd-current)
  • Re: TEST PLEASE: if_tun patch
    ... >> with network interface cloning, but tun, tap, and vmnet aren't. ... would do it up to it since some devices like vlan and ef devices might ...
    (freebsd-current)
  • Re: why tun/tap but instead ordinary ethernet device (eg. fxp)
    ... >>received by tap interface (minus ethernet crc). ... when the network subsystem sends packet out on the interface instead of ...
    (freebsd-questions)
  • Re: OpenVPN Bridging Setup auf SuSE 9.3
    ... TUN/TAP interface ... In beiliegendem Script zum erstellen der Bridge steht folgendes: ... # Define Bridge Interface ... # with TAP interfaceabove. ...
    (de.comp.os.unix.linux.misc)
  • Re: routing local traffic w/o using loopback interface
    ... i am opening up two tap interfaces, both connected to bridge, assigning them ... IP addresses and want to open up tcp connection b/w them without using ... SO_BINDTODEVICE option and socket server listening on other tap device. ... using loopback interface and kernel hacking. ...
    (freebsd-net)