Expand description
ICMPv6 packet builder.
Provides a fluent API for constructing ICMPv6 packets with type-specific fields and automatic checksum calculation using the IPv6 pseudo-header.
§Example
use stackforge_core::layer::icmpv6::Icmpv6Builder;
use std::net::Ipv6Addr;
// Build an echo request
let src = Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 1);
let dst = Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 2);
let packet = Icmpv6Builder::echo_request(0x1234, 1)
.set_src_ip(src)
.set_dst_ip(dst)
.build();Structs§
- Icmpv6
Builder - Builder for ICMPv6 packets.