Expand description
iprobe
§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
trueif the system supports IPv4 communication. - ipv6
- Returns
trueif the system supports IPv6 communication. - ipv4_
mapped_ ipv6 - Returns
trueif the system understands IPv4-mapped IPv6. - probe
- Probes IPv4, IPv6 and IPv4-mapped IPv6 communication
capabilities which are controlled by the
IPV6_V6ONLYsocket option and kernel configuration.