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

TlvOptionBase

class

(no description)

Fields

Name

Type

Description

type

short

length

short

total length of option

routingMode

GpsrForwardingMode

destinationPosition

Coord

D

perimeterRoutingStartPosition

Coord

Lp

perimeterRoutingForwardPosition

Coord

Lf

currentFaceFirstSenderAddress

L3Address

e0

currentFaceFirstReceiverAddress

L3Address

e0

senderAddress

L3Address

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)
}

File: src/inet/routing/gpsr/Gpsr.msg