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
59#define TUNGETVNETBE _IOR('T', 223, int)59#define TUNGETVNETBE _IOR('T', 223, int)
60#define TUNSETSTEERINGEBPF _IOR('T', 224, int)60#define TUNSETSTEERINGEBPF _IOR('T', 224, int)
61#define TUNSETFILTEREBPF _IOR('T', 225, int)61#define TUNSETFILTEREBPF _IOR('T', 225, int)
62#define TUNSETCARRIER _IOW('T', 226, int)
62 63
63/* TUNSETIFF ifr flags */64/* TUNSETIFF ifr flags */
64#define IFF_TUN 0x000165#define IFF_TUN 0x0001