public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Problem with tun driver
@ 2010-09-16  8:30 Martín Ferrari
  2010-09-16 13:16 ` Eric W. Biederman
  2010-09-16 13:16 ` Eric W. Biederman
  0 siblings, 2 replies; 4+ messages in thread
From: Martín Ferrari @ 2010-09-16  8:30 UTC (permalink / raw)
  To: netdev; +Cc: Eric W. Biederman

(copying Eric as he seems to have been writing patches for tun to work
with netns)

Hello,

I am seeing a strange behaviour with the TUN driver when using it
inside a network name space, hope that somebody can help me...

I still couldn' t reproduce this problem outside of my program, so it
complicates things more. What I am doing is creating a tap device,
moving it into a namespace and then passing the filedescriptor to
another process which in turn starts reading from it.

From strace I see that many reads succeed (Ipv6 autoconfig and arp
requests), and at some point, read returns EBADF. I don't see the
other processes doing anything suspicious on it at the same time. From
reading the kernel sources, it seems to be failing the call to
tun_get(), but I don' t understand how that could be happening...

Any pointers?

Thanks

-- 
Martín Ferrari

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-16 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16  8:30 Problem with tun driver Martín Ferrari
2010-09-16 13:16 ` Eric W. Biederman
2010-09-16 13:23   ` Martín Ferrari
2010-09-16 13:16 ` Eric W. Biederman

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