summaryrefslogtreecommitdiff
path: root/include/uapi/linux/if_tun.h
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2018-11-28 19:12:56 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-30 17:16:38 -0800
commit26d31925cd5ea4b5b168ed538b0326d63ccbb384 (patch)
treee6937838cb4c929d6d6fc08e0ed992c73e5437ff /include/uapi/linux/if_tun.h
parentbf1c3ab8d3571db8a973b0c46c5aa963b30d9a82 (diff)
downloadlwn-26d31925cd5ea4b5b168ed538b0326d63ccbb384.tar.gz
lwn-26d31925cd5ea4b5b168ed538b0326d63ccbb384.zip
tun: implement carrier change
The userspace may need to control the carrier state. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Didier Pallard <didier.pallard@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/if_tun.h')
-rw-r--r--include/uapi/linux/if_tun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h
index ee432cd3018c..23a6753b37df 100644
--- a/include/uapi/linux/if_tun.h
+++ b/include/uapi/linux/if_tun.h
@@ -59,6 +59,7 @@
#define TUNGETVNETBE _IOR('T', 223, int)
#define TUNSETSTEERINGEBPF _IOR('T', 224, int)
#define TUNSETFILTEREBPF _IOR('T', 225, int)
+#define TUNSETCARRIER _IOW('T', 226, int)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001