OpenWSN Firmware
ipv6_hopbyhop_iht Struct Reference

IPv6 hop-by-hop option. More...

#include <iphc.h>

Data Fields

uint8_t headerlen
 Counter for internal use. More...
 
bool next_header_compressed
 
uint8_t lowpan_nhc
 
uint8_t nextHeader
 
uint8_t HdrExtLen
 

Detailed Description

IPv6 hop-by-hop option.

The Hop-by-Hop Options header is used to carry optional information that must be examined by every node along a packet's delivery path. The Hop-by-Hop Options header is identified by a Next Header value of 0 in the IPv6 header.

Per http://tools.ietf.org/html/rfc6282#section-4.2, the first 7 bits serve as an identifier for the IPv6 Extension Header immediately following the LOWPAN_NHC octet. The remaining bit indicates whether or not the following header utilizes LOWPAN_NHC encoding.

The Length field contained in a compressed IPv6 Extension Header indicates the number of octets that pertain to the (compressed) extension header following the Length field. Note that this changes the Length field definition in [RFC2460] from indicating the header size in 8-octet units, not including the first 8 octets. Changing the Length field to be in units of octets removes wasteful internal fragmentation.

Field Documentation

uint8_t HdrExtLen
uint8_t headerlen

Counter for internal use.

uint8_t lowpan_nhc
bool next_header_compressed
uint8_t nextHeader

The documentation for this struct was generated from the following file: