default-net 0.14.1

Cross-platform library for network interface and gateway
Documentation
#[cfg(any(
    target_os = "macos",
    target_os = "openbsd",
    target_os = "freebsd",
    target_os = "netbsd",
    target_os = "ios"
))]
mod bpf;
#[cfg(any(
    target_os = "macos",
    target_os = "openbsd",
    target_os = "freebsd",
    target_os = "netbsd",
    target_os = "ios"
))]
mod socket;
#[cfg(not(target_os = "windows"))]
mod sys;

pub mod gateway;
pub mod interface;
pub mod ip;

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;