summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Kershaw <dragorn@kismetwireless.net>2005-09-01 17:40:05 -0700
committerDavid S. Miller <davem@davemloft.net>2005-09-01 17:40:05 -0700
commitff4cc3ac93e1d0369928fd60ec1fe82417afc576 (patch)
treec8f9380cfaedfd9f63f8e2eb0fff2d660aa81bab /include
parent80ac2912f846c01d702774bb6aa7100ec71e88b9 (diff)
downloadop-kernel-dev-ff4cc3ac93e1d0369928fd60ec1fe82417afc576.zip
op-kernel-dev-ff4cc3ac93e1d0369928fd60ec1fe82417afc576.tar.gz
[TUNTAP]: Allow setting the linktype of the tap device from userspace
Currently tun/tap only supports the EN10MB ARP type. For use with wireless and other networking types it should be possible to set the ARP type via an ioctl. Patch v2: Included check that the tap interface is down before changing the link type out from underneath it Signed-off-by: Mike Kershaw <dragorn@kismetwireless.net> 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 096a85a..88aef7b 100644
--- a/include/linux/if_tun.h
+++ b/include/linux/if_tun.h
@@ -77,6 +77,7 @@ struct tun_struct {
#define TUNSETIFF _IOW('T', 202, int)
#define TUNSETPERSIST _IOW('T', 203, int)
#define TUNSETOWNER _IOW('T', 204, int)
+#define TUNSETLINK _IOW('T', 205, int)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001
OpenPOWER on IntegriCloud