lkml.org 
[lkml]   [2004]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPROBLEM: 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/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.039 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site