Crate iprobe

Crate iprobe 

Source
Expand description

iprobe

Probe if the host system supports IPv4, IPv6 and IPv4-mapped-IPv6.

github LoC Build codecov

docs.rs crates.io crates.io license

§Installation

[dependencies]
iprobe = "0.1"

§Example

use iprobe::{ipv4, ipv6, ipv4_mapped_ipv6};

println!("IPv4 enabled: {}", ipv4());
println!("IPv6 enabled: {}", ipv6());
println!("IPv4-mapped IPv6 enabled: {}", ipv4_mapped_ipv6());
§License

iprobe is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2025 Al Liu.

Structs§

Probe
Represents the IP stack communication capabilities of the system.

Functions§

ipv4
Returns true if the system supports IPv4 communication.
ipv6
Returns true if the system supports IPv6 communication.
ipv4_mapped_ipv6
Returns true if the system understands IPv4-mapped IPv6.
probe
Probes IPv4, IPv6 and IPv4-mapped IPv6 communication capabilities which are controlled by the IPV6_V6ONLY socket option and kernel configuration.