fork of https://github.com/shellrow/default-net/tree/v0.16.2 fixes an unsafe bug in sockaddr_to_network_addr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
default-net/src/lib.rs

23 lines
508 B

2 years ago
#[cfg(any(
target_os = "macos",
target_os = "openbsd",
target_os = "freebsd",
target_os = "netbsd",
target_os = "ios"
))]
3 years ago
mod bpf;
#[cfg(any(target_os = "openbsd", target_os = "freebsd", target_os = "netbsd"))]
3 years ago
mod socket;
2 years ago
#[cfg(not(target_os = "windows"))]
mod sys;
3 years ago
pub mod gateway;
2 years ago
pub mod interface;
pub mod ip;
2 years ago
pub use gateway::get_default_gateway;
pub use gateway::Gateway;
pub use interface::get_default_interface;
pub use interface::get_interfaces;
pub use interface::Interface;