From 624468c5f62f3e23b46b0db4956fd55c22ef14f3 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..c97610f820 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"))] + IFF_NO_PI as i32; + /// TUN device (no Ethernet headers) + #[cfg(any(target_os = "linux"))] + IFF_TUN as i32; + /// TAP device + #[cfg(any(target_os = "linux"))] + IFF_TAP as i32; /// IPv4 interface. #[cfg(any(target_os = "solaris"))] IFF_IPV4;