PROBLEM: tun device doesn't report its device name

From: stefanb
Date: Sun Dec 19 2004 - 17:37:24 EST


Hello,
I have a problem with the virtual tun/tap device on my sparc64 (kernel 2.6.9). I try to do:

struct ifreq ifr;
ifr.ifr_flags=IFF_TAP | IFF_NO_PI;
ioctl (dev, TUNSETIFF, &ifr);

After doing this I expect to find the name of the new interface in ifr.ifr_name. But it remains unchanged. ioctl's return value does not indicate an error. The device has actually been created (according to ifconfig).

The same piece of code works fine on my x86 machine.

Regards,
Stefan Boettner

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/