IPv6 destination and hop-by-hop options

Definitions for IPv6 destination and hop-by-hop options extension headers. More...

Detailed Description

Definitions for IPv6 destination and hop-by-hop options extension headers.

Files

file  opt.h
 Destination and hop-by-hop options extension header definitions.
 

Destination and hop-by-hop option types

See also
IANA, IPv6 parameters
#define IPV6_EXT_OPT_PAD1   (0x00U)
 Pad1.
 
#define IPV6_EXT_OPT_PADN   (0x01U)
 PadN.
 
#define IPV6_EXT_OPT_JUMBO   (0xC2U)
 Jumbo payload.
 
#define IPV6_EXT_OPT_RPL   (0x63U)
 RPL Option.
 
#define IPV6_EXT_OPT_TEL   (0x04U)
 Tunnel Encapsulation Limit.
 
#define IPV6_EXT_OPT_RTR_ALERT   (0x05U)
 Router Alert.
 
#define IPV6_EXT_OPT_QUICK_START   (0x26U)
 Quick-Start.
 
#define IPV6_EXT_OPT_CALIPSO   (0x07U)
 CALIPSO.
 
#define IPV6_EXT_OPT_SMF_DPD   (0x08U)
 SMF_DPD.
 
#define IPV6_EXT_OPT_HOME_ADDR   (0xC9U)
 Home Address.
 
#define IPV6_EXT_OPT_ILNP_NONCE   (0x8BU)
 ILNP Nonce.
 
#define IPV6_EXT_OPT_LIO   (0x8CU)
 Line-Identification Option.
 
#define IPV6_EXT_OPT_MPL   (0x6DU)
 MPL Option.
 
#define IPV6_EXT_OPT_IP_DFF   (0xEEU)
 IP_DFF.
 
#define IPV6_EXT_OPT_PDM   (0x0FU)
 Performance and Diagnostic Metrics.
 

Processing actions

See also
RFC 8200, section 4.2

The Option Type identifiers are internally encoded such that their highest-order 2 bits specify the action that must be taken if the processing IPv6 node does not recognize the Option Type

#define IPV6_EXT_OPT_ACTION_MASK   (0xc0)
 mask to decode action from type
 
#define IPV6_EXT_OPT_ACTION_SKIP   (0x00)
 skip over this option and continue processing the header
 
#define IPV6_EXT_OPT_ACTION_DISC   (0x40)
 discard the packet
 
#define IPV6_EXT_OPT_ACTION_DISC_ERR_MCAST   (0x80)
 discard the packet More...
 
#define IPV6_EXT_OPT_ACTION_DISC_ERR   (0xc0)
 discard the packet More...
 

Macro Definition Documentation

◆ IPV6_EXT_OPT_ACTION_DISC_ERR

#define IPV6_EXT_OPT_ACTION_DISC_ERR   (0xc0)

discard the packet

and, only if the packet's Destination Address was not a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type.

Definition at line 88 of file opt.h.

◆ IPV6_EXT_OPT_ACTION_DISC_ERR_MCAST

#define IPV6_EXT_OPT_ACTION_DISC_ERR_MCAST   (0x80)

discard the packet

and, regardless of whether or not the packet's Destination Address was a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type.

Definition at line 79 of file opt.h.