network-interface icon indicating copy to clipboard operation
network-interface copied to clipboard

Retrieve system's Network Interfaces on Linux, macOS and Windows on a standardized manner

Results 10 network-interface issues
Sort by recently updated
recently updated
newest added

It would be great it `NetworkInterface` contained the MTU of the interface.

enhancement
help wanted

network-interface can show the network interce .Actually atfer Unplug the network cable, I got the same response. itf:NetworkInterface { name: "以太网", addr: [V6(V6IfAddr { ip: fe80::322c:fcc3:745d:86d8, broadcast: None, netmask: None...

bug
help wanted
os-windows

Hey! I'm looking for the same functionality as the [`is_loopback()`](https://docs.rs/pnet_datalink/0.33.0/pnet_datalink/struct.NetworkInterface.html#method.is_loopback) method of the `pnet_datalink` crate. FWIW, here's what GPT-4 generated to do this: ```rust #[cfg(unix)] fn main() { use libc::{getifaddrs,...

enhancement
help wanted

Returning some iterator type instead of the whole `Vec` directly would allow consumers to have more control over how memory is allocated.

enhancement
good first issue

Hi, Currently, NetworkInterface's `mac_addr` member is a `Option`. It would be nice to have a simple `MacAddr` type, like: ```rust pub struct MacAddr([u8; 6]); ``` with a From impl and...

enhancement
good first issue

I know this would require a different lookup in libc, but having the MAC hardware address included would be super helpful. As I understand it, you have to call `ioctl`...

enhancement

In can be cool to add `serde` under a feature flag and provide [`Serialize`](https://docs.rs/serde/latest/serde/trait.Serialize.html) / [`Deserialize`](https://docs.rs/serde/latest/serde/trait.Deserialize.html) for comon type such as - `NetworkInterface` - `Addr` - `V4IfAddr` - `V6IfAddr` I'm...

Hi, I have encountered a potential issue in the `IfAddrIterator` implementation that may lead to a use after free in safe Rust. https://github.com/LeoBorai/network-interface/blob/ac7193e3287b4ad7e3c840dde1142c3b680d04a5/src/target/getifaddrs.rs#L4-L27 The following test code can trigger a...

I would like to be able to find wireless network adapters with this crate (as opposed to wired), and find out the network adapter name and mac address.