Struct smoltcp::wire::Ipv6RoutingHeader [−][src]
Expand description
A read/write wrapper around an IPv6 Routing Header buffer.
Implementations
Core getter methods relevant to any routing type.
Create a raw octet buffer with an IPv6 Routing Header 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.
The result of this check is invalidated by calling set_header_len.
Consume the header, returning the underlying buffer.
Return the next header field.
Return the header length field. Length of the Routing header in 8-octet units, not including the first 8 octets.
Return the routing type field.
Return the segments left field.
Getter methods for the Type 2 Routing Header routing type.
Return the IPv6 Home Address
Panics
This function may panic if this header is not the Type2 Routing Header routing type.
Getter methods for the RPL Source Routing Header routing type.
Return the number of prefix octects elided from addresses[1..n-1].
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.
Return the number of prefix octects elided from the last address (addresses[n]
).
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.
Return the number of octects used for padding after addresses[n]
.
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.
Core setter methods relevant to any routing type.
Set the next header field.
Set the option data length. Length of the Routing header in 8-octet units.
Set the routing type.
Set the segments left field.
Setter methods for the RPL Source Routing Header routing type.
Set the Ipv6 Home Address
Panics
This function may panic if this header is not the Type 2 Routing Header routing type.
Setter methods for the RPL Source Routing Header routing type.
Set the number of prefix octects elided from addresses[1..n-1].
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.
Set the number of prefix octects elided from the last address (addresses[n]
).
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.
Set the number of octects used for padding after addresses[n]
.
Panics
This function may panic if this header is not the RPL Source Routing Header routing type.