tap interfaces on FreeBSD 6.0
rwatson at FreeBSD.org
Sat Jan 14 15:26:22 PST 2006
On Sat, 14 Jan 2006, Brooks Davis wrote:
> IIRC, you don't need to create the device nodes at all. I think qemu just
> tries to open /dev/tap# from 0-9.
In my local code to use if_tap, I just iterate through /dev/tapX nodes until I
find one that isn't busy. That causes the creation of the interface tapX,
which can then be ioctl'd (etc). I've never run into the symptoms described,
so it could well be it's an odd result of auto-loading by ifconfig -- however,
normally you'd expect ENOENT if the module wasn't loaded, since the device
node simply wouldn't exist. I'll run some local tests tomorrow and see if I
can reproduce it with a recent tree version.
Robert N M Watson
More information about the freebsd-net