GpsrOption¶
Namespace: inet
class GpsrOption
The GPSROption is used to add extra routing information for network datagrams.
For more information, see the GPSR paper http://www.eecs.harvard.edu/~htk/publication/2000-mobi-karp-kung.pdf
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
type |
short |
|
length |
short |
total length of option |
routingMode |
||
destinationPosition |
D |
|
perimeterRoutingStartPosition |
Lp |
|
perimeterRoutingForwardPosition |
Lf |
|
currentFaceFirstSenderAddress |
e0 |
|
currentFaceFirstReceiverAddress |
e0 |
|
senderAddress |
TODO this field is not strictly needed by GPSR (should be eliminated) |
Properties¶
Name |
Value |
Description |
|---|---|---|
packetData |
Source code¶
//
// The GPSROption is used to add extra routing information for network datagrams.
//
// For more information, see the GPSR paper
// http://www.eecs.harvard.edu/~htk/publication/2000-mobi-karp-kung.pdf
//
class GpsrOption extends TlvOptionBase {
GpsrForwardingMode routingMode;
Coord destinationPosition; // D
Coord perimeterRoutingStartPosition; // Lp
Coord perimeterRoutingForwardPosition; // Lf
L3Address currentFaceFirstSenderAddress; // e0
L3Address currentFaceFirstReceiverAddress; // e0
L3Address senderAddress; // TODO this field is not strictly needed by GPSR (should be eliminated)
}