ParseFrom()
Parses the IPv6 and UDP/TCP/ICMP6 headers from a given message.
DecompressFrom()
Decompresses lowpan frame and parses the IPv6 and UDP/TCP/ICMP6 headers.
DecompressFrom()
Decompresses lowpan frame and parses the IPv6 and UDP/TCP/ICMP6 headers.
Returns the IPv6 header.
GetIpProto() const
Returns the IP protocol number from IPv6 Next Header field.
GetEcn() const
Returns the 2-bit Explicit Congestion Notification (ECN) from Traffic Class field from IPv6 header.
IsUdp() const
Indicates if the protocol number from IPv6 header is UDP.
IsTcp() const
Indicates if the protocol number from IPv6 header is TCP.
IsIcmp6() const
Indicates if the protocol number from IPv6 header is ICMPv6.
GetSourceAddress() const
Returns the source IPv6 address from IPv6 header.
GetDestinationAddress() const
Returns the destination IPv6 address from IPv6 header.
Returns the UDP header. MUST be used when `IsUdp() == true`. Otherwise its behavior is undefined.
Returns the TCP header. MUST be used when `IsTcp() == true`. Otherwise its behavior is undefined.
Returns the ICMPv6 header. MUST be used when `IsIcmp6() == true`. Otherwise its behavior is undefined.
GetSourcePort() const
Returns the source port number if header is UDP or TCP, or zero otherwise.
GetDestinationPort() const
Returns the destination port number if header is UDP or TCP, or zero otherwise.
GetChecksum() const
Returns the checksum values from corresponding UDP, TCP, or ICMPv6 header.