#include <DSR.h>

Data Fields | |
| DSR_OPTION_TYPE | nOptionType |
| unsigned int | nOptDataLen:8 |
| unsigned int | nLastHopExternal:1 |
| unsigned int | nReserved:7 |
| NETSIM_IPAddress * | Address |
| NETSIM_IPAddress* stru_NetSim_DSR_RREP_Option::Address |
The source route being returned by the Route Reply. The route indicates a sequence of hops, originating at the source node specified in the Destination Address field of the IP header of the packet carrying the Route Reply, through each of the Address[i] nodes in the order listed in the Route Reply, ending at the node indicated by Address[n]. 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 - 1) / 4).
| unsigned int stru_NetSim_DSR_RREP_Option::nLastHopExternal |
Set to indicate that the last hop given by the Route Reply (the link from Address[n-1] to Address[n]) 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 Route Reply. 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 cached 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_RREP_Option::nOptDataLen |
| DSR_OPTION_TYPE stru_NetSim_DSR_RREP_Option::nOptionType |
| unsigned int stru_NetSim_DSR_RREP_Option::nReserved |