Struct smoltcp::wire::Icmpv6Packet [−][src]
Expand description
A read/write wrapper around an Internet Control Message Protocol version 6 packet buffer.
Implementations
Imbue a raw octet buffer with ICMPv6 packet structure.
Shorthand for a combination of new_unchecked and check_len.
Ensure that no accessor method will panic if called.
Returns Err(Error::Truncated)
if the buffer is too short.
Consume the packet, returning the underlying buffer.
Return the identifier field (for echo request and reply packets).
Return the sequence number field (for echo request and reply packets).
Return the MTU field (for packet too big messages).
Return the pointer field (for parameter problem messages).
Return the header length. The result depends on the value of the message type field.
Set the message type field.
Set the message code field.
Clear any reserved fields in the message header.
Panics
This function panics if the message type has not been set. See set_msg_type.
Set the identifier field (for echo request and reply packets).
Panics
This function may panic if this packet is not an echo request or reply packet.
Set the sequence number field (for echo request and reply packets).
Panics
This function may panic if this packet is not an echo request or reply packet.
Set the MTU field (for packet too big messages).
Panics
This function may panic if this packet is not an packet too big packet.
Set the pointer field (for parameter problem messages).
Panics
This function may panic if this packet is not a parameter problem message.
Compute and fill in the header checksum.
Getters for the Multicast Listener Query message header. See RFC 3810 § 5.1.
Return the maximum response code field.
Return the address being queried.
Getters for the Multicast Listener Report message header. See RFC 3810 § 5.2.
Return the number of Multicast Address Records.
Setters for the Multicast Listener Query message header. See RFC 3810 § 5.1.
Set the maximum response code field.
Set the address being queried.
Set the Suppress Router-Side Processing flag.
Clear the Suppress Router-Side Processing flag.
Set number of sources.
Setters for the Multicast Listener Report message header. See RFC 3810 § 5.2.
Set the number of Multicast Address Records.
Getters for the Router Advertisement message header. See RFC 4861 § 4.2.
Return the current hop limit field.
Return the Router Advertisement flags.
Return the router lifetime field.
Return the reachable time field.
Return the retransmit time field.
Common getters for the Neighbor Solicitation, Neighbor Advertisement, and Redirect message types.
Return the target address field.
Getters for the Neighbor Solicitation message header. See RFC 4861 § 4.3.
Return the Neighbor Solicitation flags.
Setters for the Router Advertisement message header. See RFC 4861 § 4.2.
Set the current hop limit field.
Set the Router Advertisement flags.
Set the router lifetime field.
Set the reachable time field.
Set the retransmit time field.
Common setters for the Neighbor Solicitation, Neighbor Advertisement, and Redirect message types.
Set the target address field.
Setters for the Neighbor Solicitation message header. See RFC 4861 § 4.3.
Set the Neighbor Solicitation flags.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Packet<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Packet<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more