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

#include <DSR.h>

Collaboration diagram for stru_NetSim_DSR_RERR_Option:

Public Types

enum  { NODE_UNREACHABLE =1 , FLOW_STATE_NOT_SUPPORTED , OPTION_NOT_SUPPORTED }
 

Data Fields

DSR_OPTION_TYPE nOptionType
 
unsigned int nOptDataLen:8
 
enum stru_NetSim_DSR_RERR_Option:: { ... }  nErrorType
 
unsigned int nReserved:4
 
unsigned int nSalvage:4
 
NETSIM_IPAddress errorSourceAddress
 
NETSIM_IPAddress errorDestinationAddress
 
void * TypeSpecificInformation
 
unsigned int length
 
unsigned int nSegsLeft
 
NETSIM_IPAddressAddress
 

Detailed Description

6.4. Route Error Option
The Route Error option in a DSR Options header is encoded as follows:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Option Type | Opt Data Len | Error Type |Reservd|Salvage|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Error Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Error Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. Type-Specific Information .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Definition at line 350 of file DSR.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Error Type
The type of error encountered. Currently, the following type
values are defined:
1 = NODE_UNREACHABLE
2 = FLOW_STATE_NOT_SUPPORTED
3 = OPTION_NOT_SUPPORTED

Definition at line 385 of file DSR.h.

386 {
387 NODE_UNREACHABLE=1,
388 FLOW_STATE_NOT_SUPPORTED,
389 OPTION_NOT_SUPPORTED,
390 }nErrorType;
enum stru_NetSim_DSR_RERR_Option::@234164063043207073373340307253340021156076321263 nErrorType

Field Documentation

◆ Address

NETSIM_IPAddress* stru_NetSim_DSR_RERR_Option::Address

Definition at line 432 of file DSR.h.

◆ errorDestinationAddress

NETSIM_IPAddress stru_NetSim_DSR_RERR_Option::errorDestinationAddress

The address of the node to which the Route Error must be delivered. For example, when the Error Type field is set to NODE_UNREACHABLE, this field will be set to the address of the node that generated the routing information claiming that the hop from the Error Source Address to Unreachable Node Address (specified in the Type-Specific Information) was a valid hop.

Definition at line 415 of file DSR.h.

◆ errorSourceAddress

NETSIM_IPAddress stru_NetSim_DSR_RERR_Option::errorSourceAddress

The address of the node originating the Route Error (e.g., the node that attempted to forward a packet and discovered the link failure).

Definition at line 409 of file DSR.h.

◆ length

unsigned int stru_NetSim_DSR_RERR_Option::length

Definition at line 430 of file DSR.h.

◆ []

enum { ... } stru_NetSim_DSR_RERR_Option::nErrorType
Error Type
The type of error encountered. Currently, the following type
values are defined:
1 = NODE_UNREACHABLE
2 = FLOW_STATE_NOT_SUPPORTED
3 = OPTION_NOT_SUPPORTED

◆ nOptDataLen

unsigned int stru_NetSim_DSR_RERR_Option::nOptDataLen

8-bit unsigned integer. Length of the option, in octets, excluding the Option Type and Opt Data Len fields.
For the current definition of the Route Error option, this field MUST be set to 10, plus the size of any Type-Specific Information present in the Route Error. Further extensions to the Route Error option format may also be included after the Type-Specific Information portion of the Route Error option specified above. The presence of such extensions will be indicated by the Opt Data Len field. When the Opt Data Len is greater than that required for the fixed portion of the Route Error plus the necessary Type-Specific Information as indicated by the Option Type value in the option, the remaining octets are interpreted as extensions. Currently, no such further extensions have been defined.

Definition at line 357 of file DSR.h.

◆ nOptionType

DSR_OPTION_TYPE stru_NetSim_DSR_RERR_Option::nOptionType

Nodes not understanding this option will ignore this option.

Definition at line 352 of file DSR.h.

◆ nReserved

unsigned int stru_NetSim_DSR_RERR_Option::nReserved

Reserved. MUST be sent as 0 and ignored on reception.

Definition at line 392 of file DSR.h.

◆ nSalvage

unsigned int stru_NetSim_DSR_RERR_Option::nSalvage

A 4-bit unsigned integer. Copied from the Salvage field in the DSR Source Route option of the packet triggering the Route Error.

The "total salvage count" of the Route Error option is derived from the value in the Salvage field of this Route Error option and all preceding Route Error options in the packet as follows: the total salvage count is the sum of, for each such Route Error option, one plus the value in the Salvage field of that Route Error option.

Definition at line 396 of file DSR.h.

◆ nSegsLeft

unsigned int stru_NetSim_DSR_RERR_Option::nSegsLeft

Definition at line 431 of file DSR.h.

◆ TypeSpecificInformation

void* stru_NetSim_DSR_RERR_Option::TypeSpecificInformation

Information specific to the Error Type of this Route Error message.

Definition at line 424 of file DSR.h.


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