Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/net/if_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn if_indextoname(index: c_uint) -> Result<CString> {
libc_bitflags!(
/// Standard interface flags, used by `getifaddrs`
pub struct InterfaceFlags: IflagsType {

/// Interface is running. (see
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
IFF_UP as IflagsType;
Expand Down Expand Up @@ -271,6 +271,7 @@ impl fmt::Display for InterfaceFlags {
bsd,
target_os = "fuchsia",
target_os = "linux",
target_os = "android",
solarish,
))]
mod if_nameindex {
Expand Down Expand Up @@ -398,6 +399,7 @@ mod if_nameindex {
bsd,
target_os = "fuchsia",
target_os = "linux",
target_os = "android",
solarish,
))]
pub use if_nameindex::*;