Google is committed to advancing racial equity for Black communities. See how.

nl::Weave::Profiles::WeaveTunnel::WeaveTunnelHeader

Summary

Public attributes

Version
uint8_t

Public static functions

DecodeTunnelHeader(WeaveTunnelHeader *tunHeader, PacketBuffer *message)
Decode Tunnel header out from the PacketBuffer to decapsulate the IPv6 packet out.
EncodeTunnelHeader(WeaveTunnelHeader *tunHeader, PacketBuffer *message)
Encode Tunnel header into the PacketBuffer to encapsulate the IPv6 packet being sent.

Public attributes

Version

uint8_t Version

Public static functions

DecodeTunnelHeader

WEAVE_ERROR DecodeTunnelHeader(
  WeaveTunnelHeader *tunHeader,
  PacketBuffer *message
)

Decode Tunnel header out from the PacketBuffer to decapsulate the IPv6 packet out.

Details
Parameters
[out] tunHeader
Pointer to the WeaveTunnelHeader decoded.
[in] message
Pointer to the PacketBuffer from which to decode the tunnel header.
Returns
WEAVE_ERROR WEAVE_NO_ERROR on success, else error;

EncodeTunnelHeader

WEAVE_ERROR EncodeTunnelHeader(
  WeaveTunnelHeader *tunHeader,
  PacketBuffer *message
)

Encode Tunnel header into the PacketBuffer to encapsulate the IPv6 packet being sent.

Details
Parameters
[in] tunHeader
Pointer to the WeaveTunnelHeader to encode.
[in] message
Pointer to the PacketBuffer on which to encode the tunnel header.
Returns
WEAVE_ERROR WEAVE_NO_ERROR on success, else error;