From 0a78f5247544b62cc54ddf1abd16b2349b1859e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=A7=E9=9D=9C?= Date: Thu, 1 Feb 2018 04:42:56 +0800 Subject: [PATCH] Update `InterfaceFlags` Add Flags: `IFF_NO_PI`, `IFF_TUN`, `IFF_TAP`. --- src/net/if_.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/net/if_.rs b/src/net/if_.rs index 19b1ee73c0..3a358f1744 100644 --- a/src/net/if_.rs +++ b/src/net/if_.rs @@ -215,6 +215,15 @@ libc_bitflags!( /// Don't exchange routing info. #[cfg(any(target_os = "solaris"))] IFF_NORTEXCH; + /// Do not provide packet information + #[cfg(any(target_os = "linux", target_os = "android"))] + IFF_NO_PI as i32; + /// TUN device (no Ethernet headers) + #[cfg(any(target_os = "linux", target_os = "android"))] + IFF_TUN as i32; + /// TAP device + #[cfg(any(target_os = "linux", target_os = "android"))] + IFF_TAP as i32; /// IPv4 interface. #[cfg(any(target_os = "solaris"))] IFF_IPV4;