]> git.baikalelectronics.ru Git - kernel.git/commit
tun: TUNGETIFF interface to query name and flags
authorMark McLoughlin <markmc@redhat.com>
Fri, 15 Aug 2008 22:09:56 +0000 (15:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Aug 2008 02:52:19 +0000 (19:52 -0700)
commit10e05ab2e3f93a7218575127f69886cd731acc0d
tree97f764e5c8587efcba64ad8d0edce9fee094e143
parent0d064e4c75c70a510af78562b9e36796035246e5
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 one app to create
a tap interface, exec another app and pass it the file
descriptor for the interface. Without TUNGETIFF the spawned
app has no way of detecting wheter the interface has e.g.
IFF_VNET_HDR set.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Acked-by: Max Krasnyansky <maxk@qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
include/linux/if_tun.h