mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PROBLEM: tun device doesn't report its device name
@ 2004-12-19 22:37 stefanb
  0 siblings, 0 replies; only message in thread
From: stefanb @ 2004-12-19 22:37 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-19 22:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-19 22:37 PROBLEM: tun device doesn't report its device name stefanb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®