#system #addr #interface #net

get_if_addrs

Return interface IP addresses on Posix and windows systems

10 releases

Uses old Rust 2015

0.5.3 Jun 21, 2018
0.5.2 May 18, 2018
0.5.1 Apr 2, 2018
0.5.0 Jan 5, 2018
0.1.1 Jan 12, 2016

#22 in #addr

Download history 9145/week @ 2024-12-21 9490/week @ 2024-12-28 18340/week @ 2025-01-04 23912/week @ 2025-01-11 20468/week @ 2025-01-18 23998/week @ 2025-01-25 26243/week @ 2025-02-01 29193/week @ 2025-02-08 24415/week @ 2025-02-15 27306/week @ 2025-02-22 26111/week @ 2025-03-01 23908/week @ 2025-03-08 25927/week @ 2025-03-15 26333/week @ 2025-03-22 22269/week @ 2025-03-29 25325/week @ 2025-04-05

103,040 downloads per month
Used in fewer than 52 crates

MIT OR BSD-3-Clause

37KB
735 lines

get_if_addrs

Maintainer: Spandan Sharma (spandan.sharma@maidsafe.net)

Crate Documentation Linux/OS X Windows Issues
Documentation Build Status Build status Stories in Ready
MaidSafe website SAFE Dev Forum SAFE Network Forum

Overview

Retrieve network interface info for all interfaces on the system.

// List all of the machine's network interfaces
for iface in get_if_addrs::get_if_addrs().unwrap() {
    println!("{:#?}", iface);
}

Todo Items

  • Create an API for responding to changes in network interfaces.

License

This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.

Contribution

Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.

Dependencies

~115KB