From: stefanb@upb.de
To: linux-kernel@vger.kernel.org
Subject: PROBLEM: tun device doesn't report its device name
Date: Sun, 19 Dec 2004 23:37:36 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.61.0412192331081.5458@kater> (raw)
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
reply other threads:[~2004-12-19 22:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0412192331081.5458@kater \
--to=stefanb@upb.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®