Re: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-15 Thread David Miller
From: Max Krasnyansky <[EMAIL PROTECTED]> Date: Fri, 15 Aug 2008 11:00:19 -0700 > Rusty Russell wrote: > > On Thursday 14 August 2008 00:30:16 Mark McLoughlin wrote: > >> A very simple approach is attached; I did consider doing a TUNGETFLAGS > >> that would return tun->flags, but I think it's nice

Re: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-15 Thread Max Krasnyansky
Mark McLoughlin wrote: > On Thu, 2008-08-14 at 11:58 +1000, Rusty Russell wrote: >> On Thursday 14 August 2008 00:30:16 Mark McLoughlin wrote: >>> A very simple approach is attached; I did consider doing a TUNGETFLAGS >>> that would return tun->flags, but I think it's nicer to have a companion >>>

Re: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-15 Thread Max Krasnyansky
Sorry for the delay guys. Was trying to get QEMU USB changes out and was not paying attention to the other stuff :) Rusty Russell wrote: > On Thursday 14 August 2008 00:30:16 Mark McLoughlin wrote: >> A very simple approach is attached; I did consider doing a TUNGETFLAGS >> that would return tun->

Re: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-15 Thread Mark McLoughlin
On Thu, 2008-08-14 at 11:58 +1000, Rusty Russell wrote: > On Thursday 14 August 2008 00:30:16 Mark McLoughlin wrote: > > A very simple approach is attached; I did consider doing a TUNGETFLAGS > > that would return tun->flags, but I think it's nicer to have a companion > > to TUNGETIFF since it also

Re: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-13 Thread Rusty Russell
On Thursday 14 August 2008 00:30:16 Mark McLoughlin wrote: > A very simple approach is attached; I did consider doing a TUNGETFLAGS > that would return tun->flags, but I think it's nicer to have a companion > to TUNGETIFF since it also allows one to query the interface name from > the file descript

[PATCH 1/1] tun: TUNGETIFF interface to query name and flags

2008-08-13 Thread Mark McLoughlin
o allows one to query the interface name from the file descriptor. Cheers, Mark. Subject: [PATCH 1/1] tun: TUNGETIFF interface to query name and flags Add a TUNGETIFF interface so that userspace can query a tun/tap descriptor for its name and flags. This is needed because it is common for on