NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
stru_DSR_OptionHeader Struct Reference

#include <DSR.h>

Collaboration diagram for stru_DSR_OptionHeader:

Data Fields

unsigned int nNextHeader:8
 
unsigned int nFlowState:1
 
unsigned int nReserved:7
 
unsigned int nPayloadLength:16
 
DSR_OPTION_TYPE optType
 
void * options
 
DSR_ACK_REQ_OPTIONackRequestOption
 

Detailed Description

6.1. Fixed Portion of DSR Options Header
The fixed portion of the DSR Options header is used to carry
information that must be present in any DSR Options header. This
fixed portion of the DSR Options header has the following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Next Header |F| Reserved | Payload Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. Options .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Definition at line 534 of file DSR.h.

Field Documentation

◆ ackRequestOption

DSR_ACK_REQ_OPTION* stru_DSR_OptionHeader::ackRequestOption

Definition at line 566 of file DSR.h.

◆ nFlowState

unsigned int stru_DSR_OptionHeader::nFlowState

Flag bit. MUST be set to 0. This bit is set in a DSR Flow State header (Section 7.1) and clear in a DSR Options header.

Definition at line 543 of file DSR.h.

◆ nNextHeader

unsigned int stru_DSR_OptionHeader::nNextHeader

8-bit selector. Identifies the type of header immediately following the DSR Options header. Uses the same values as the IPv4 Protocol field [RFC1700]. If no header follows, then Next Header MUST have the value 59, "No Next Header" [RFC2460].

Definition at line 536 of file DSR.h.

◆ nPayloadLength

unsigned int stru_DSR_OptionHeader::nPayloadLength

Definition at line 557 of file DSR.h.

◆ nReserved

unsigned int stru_DSR_OptionHeader::nReserved

MUST be sent as 0 and ignored on reception. Payload Length The length of the DSR Options header, excluding the 4-octet fixed portion. The value of the Payload Length field defines the total length of all options carried in the DSR Options header.

Definition at line 548 of file DSR.h.

◆ options

void* stru_DSR_OptionHeader::options

Definition at line 565 of file DSR.h.

◆ optType

DSR_OPTION_TYPE stru_DSR_OptionHeader::optType

Variable-length field; the length of the Options field is specified by the Payload Length field in this DSR Options header. Contains one or more pieces of optional information (DSR options), encoded in type-length-value (TLV) format (with the exception of the Pad1 option described in Section 6.8).

Definition at line 558 of file DSR.h.


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