Messages in this thread | | | Date | Sun, 19 Dec 2004 23:37:36 +0100 (CET) | From | stefanb@upb ... | Subject | PROBLEM: tun device doesn't report its device name |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |