summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark McLoughlin2008-08-16 00:09:56 +0200
committerDavid S. Miller2008-08-16 04:52:19 +0200
commite3b99556975907530aeb9745e7b3945a0da48f17 (patch)
tree97f764e5c8587efcba64ad8d0edce9fee094e143 /include
parentloopback: Drop obsolete ip_summed setting (diff)
downloadkernel-qcow2-linux-e3b99556975907530aeb9745e7b3945a0da48f17.tar.gz
kernel-qcow2-linux-e3b99556975907530aeb9745e7b3945a0da48f17.tar.xz
kernel-qcow2-linux-e3b99556975907530aeb9745e7b3945a0da48f17.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_tun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h
index 4c6307ad9fdb..8529f57ba263 100644
--- a/include/linux/if_tun.h
+++ b/include/linux/if_tun.h
@@ -45,6 +45,7 @@
#define TUNGETFEATURES _IOR('T', 207, unsigned int)
#define TUNSETOFFLOAD _IOW('T', 208, unsigned int)
#define TUNSETTXFILTER _IOW('T', 209, unsigned int)
+#define TUNGETIFF _IOR('T', 210, unsigned int)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001