#include <DSR.h>

Data Fields | |
| DSR_OPTION_TYPE | nOptionType |
| unsigned int | nOptDataLen:8 |
| unsigned int | F:1 |
| unsigned int | L:1 |
| unsigned int | nReserved:4 |
| unsigned int | nSalvage:4 |
| unsigned int | nSegsLeft:4 |
| NETSIM_IPAddress * | Address |
| NETSIM_IPAddress* stru_NetSim_DSR_SourceRouteOption::Address |
The sequence of addresses of the source route. In routing and forwarding the packet, the source route is processed as described in Sections 8.1.3 and 8.1.5. The number of addresses present in the Address[1..n] field is indicated by the Opt Data Len field in the option (n = (Opt Data Len - 2) / 4).
| unsigned int stru_NetSim_DSR_SourceRouteOption::F |
Set to indicate that the first hop indicated by the DSR Source Route option is actually an arbitrary path in a network external to the DSR network; the exact route outside the DSR network is not represented in the DSR Source Route option. Nodes caching this hop in their Route Cache MUST flag the cached hop with the External flag. Such hops MUST NOT be returned in a Route Reply generated from this Route Cache entry, and selection of routes from the Route Cache to route a packet being sent SHOULD prefer routes that contain no hops flagged as External.
| unsigned int stru_NetSim_DSR_SourceRouteOption::L |
Set to indicate that the last hop indicated by the DSR Source Route option is actually an arbitrary path in a network external to the DSR network; the exact route outside the DSR network is not represented in the DSR Source Route option. Nodes caching this hop in their Route Cache MUST flag the cached hop with the External flag. Such hops MUST NOT be returned in a Route Reply generated from this Route Cache entry, and selection of routes from the Route Cache to route a packet being sent SHOULD prefer routes that contain no hops flagged as External.
| unsigned int stru_NetSim_DSR_SourceRouteOption::nOptDataLen |
8-bit unsigned integer. Length of the option, in octets, excluding the Option Type and Opt Data Len fields. For the format of the DSR Source Route option defined here, this field MUST be set to the value (n * 4) + 2, where n is the number of addresses present in the Address[i] fields.
| DSR_OPTION_TYPE stru_NetSim_DSR_SourceRouteOption::nOptionType |
| unsigned int stru_NetSim_DSR_SourceRouteOption::nReserved |
| unsigned int stru_NetSim_DSR_SourceRouteOption::nSalvage |
| unsigned int stru_NetSim_DSR_SourceRouteOption::nSegsLeft |