Loading...
Searching...
No Matches
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] (https://www.iana.org/assignments/ipv6-parameters/ipv6-parameters.xhtml#ipv6-parameters-2)
#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
 
#define IPV6_EXT_OPT_ACTION_DISC_ERR   (0xc0)
 discard the packet
 

Macro Definition Documentation

◆ IPV6_EXT_OPT_ACTION_DISC

#define IPV6_EXT_OPT_ACTION_DISC   (0x40)

discard the packet

Definition at line 70 of file opt.h.

◆ 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.

◆ IPV6_EXT_OPT_ACTION_MASK

#define IPV6_EXT_OPT_ACTION_MASK   (0xc0)

mask to decode action from type

Definition at line 65 of file opt.h.

◆ IPV6_EXT_OPT_ACTION_SKIP

#define IPV6_EXT_OPT_ACTION_SKIP   (0x00)

skip over this option and continue processing the header

Definition at line 69 of file opt.h.

◆ IPV6_EXT_OPT_CALIPSO

#define IPV6_EXT_OPT_CALIPSO   (0x07U)

CALIPSO.

Definition at line 43 of file opt.h.

◆ IPV6_EXT_OPT_HOME_ADDR

#define IPV6_EXT_OPT_HOME_ADDR   (0xC9U)

Home Address.

Definition at line 45 of file opt.h.

◆ IPV6_EXT_OPT_ILNP_NONCE

#define IPV6_EXT_OPT_ILNP_NONCE   (0x8BU)

ILNP Nonce.

Definition at line 46 of file opt.h.

◆ IPV6_EXT_OPT_IP_DFF

#define IPV6_EXT_OPT_IP_DFF   (0xEEU)

IP_DFF.

Definition at line 49 of file opt.h.

◆ IPV6_EXT_OPT_JUMBO

#define IPV6_EXT_OPT_JUMBO   (0xC2U)

Jumbo payload.

Definition at line 38 of file opt.h.

◆ IPV6_EXT_OPT_LIO

#define IPV6_EXT_OPT_LIO   (0x8CU)

Line-Identification Option.

Definition at line 47 of file opt.h.

◆ IPV6_EXT_OPT_MPL

#define IPV6_EXT_OPT_MPL   (0x6DU)

MPL Option.

Definition at line 48 of file opt.h.

◆ IPV6_EXT_OPT_PAD1

#define IPV6_EXT_OPT_PAD1   (0x00U)

Pad1.

Definition at line 36 of file opt.h.

◆ IPV6_EXT_OPT_PADN

#define IPV6_EXT_OPT_PADN   (0x01U)

PadN.

Definition at line 37 of file opt.h.

◆ IPV6_EXT_OPT_PDM

#define IPV6_EXT_OPT_PDM   (0x0FU)

Performance and Diagnostic Metrics.

Definition at line 50 of file opt.h.

◆ IPV6_EXT_OPT_QUICK_START

#define IPV6_EXT_OPT_QUICK_START   (0x26U)

Quick-Start.

Definition at line 42 of file opt.h.

◆ IPV6_EXT_OPT_RPL

#define IPV6_EXT_OPT_RPL   (0x63U)

RPL Option.

Definition at line 39 of file opt.h.

◆ IPV6_EXT_OPT_RTR_ALERT

#define IPV6_EXT_OPT_RTR_ALERT   (0x05U)

Router Alert.

Definition at line 41 of file opt.h.

◆ IPV6_EXT_OPT_SMF_DPD

#define IPV6_EXT_OPT_SMF_DPD   (0x08U)

SMF_DPD.

Definition at line 44 of file opt.h.

◆ IPV6_EXT_OPT_TEL

#define IPV6_EXT_OPT_TEL   (0x04U)

Tunnel Encapsulation Limit.

Definition at line 40 of file opt.h.