tun: move internal flag defines out of uapi
[firefly-linux-kernel-4.4.55.git] / include / uapi / linux / if_tun.h
index e9502dd1ee2cc178e712e6ab05c59efecdaf980f..277a2607d166e0485109515a2658eb4be978d2fe 100644 (file)
 
 /* Read queue size */
 #define TUN_READQ_SIZE 500
-
-/* TUN device flags */
-#define TUN_TUN_DEV    0x0001  
-#define TUN_TAP_DEV    0x0002
+/* TUN device type flags: deprecated. Use IFF_TUN/IFF_TAP instead. */
+#define TUN_TUN_DEV    IFF_TUN
+#define TUN_TAP_DEV    IFF_TAP
 #define TUN_TYPE_MASK   0x000f
 
-#define TUN_FASYNC     0x0010
-#define TUN_NOCHECKSUM 0x0020
-#define TUN_NO_PI      0x0040
-/* This flag has no real effect */
-#define TUN_ONE_QUEUE  0x0080
-#define TUN_PERSIST    0x0100  
-#define TUN_VNET_HDR   0x0200
-#define TUN_TAP_MQ      0x0400
-
 /* Ioctl defines */
 #define TUNSETNOCSUM  _IOW('T', 200, int) 
 #define TUNSETDEBUG   _IOW('T', 201, int)