History

tun: implement carrier change

The userspace may need to control the carrier state.

Nicolas Dichtel committed 7 years ago

Commit 26d31921 parent bf1c3ab2 files · +27 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_tun.h+1−0
@@ -59,6 +59,7 @@ · 58 unmodified lines
5959 #define TUNGETVNETBE _IOR('T', 223, int)
6060 #define TUNSETSTEERINGEBPF _IOR('T', 224, int)
6161 #define TUNSETFILTEREBPF _IOR('T', 225, int)
62+#define TUNSETCARRIER _IOW('T', 226, int)
6263
6364 /* TUNSETIFF ifr flags */
6465 #define IFF_TUN 0x0001