netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Prashant Batra <prbatra.lists@gmail.com>
To: netdev@vger.kernel.org, linux-newbie@vger.kernel.org
Subject: attach multiple programs to tun/tap interface
Date: Mon, 01 Apr 2013 22:42:21 +0530	[thread overview]
Message-ID: <5159BFF5.90209@gmail.com> (raw)

Hi,

I have a basic query on tun/tap driver design. Is it possible to attach 
multiple user-space programs to the same tun/tap interface. I have not 
set the interface as EXCLUSIVE,
but still on trying to do ioctl with cmd as “TUNSETIFF” from the second 
user space program, I get “Device busy”.

Seeing through the driver code, it looks like it does not allow multiple 
user-programs to attach to the same interface, but is this valid, and 
please let me know why this requirement was taken.

Will you please help me in understanding this?

Thanks,
Prashant

                 reply	other threads:[~2013-04-01 17:13 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=5159BFF5.90209@gmail.com \
    --to=prbatra.lists@gmail.com \
    --cc=linux-newbie@vger.kernel.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).