TeLinkStateInfo

Namespace inet

TeLinkStateInfo

struct

Represents a link in the Ted and in LinkStateMsg packets.

Fields

Name Type Description
advrouter Ipv4Address

routerId of originator of this link state entry

linkid Ipv4Address

identifies link within advrouter; set to peer's address

local Ipv4Address

address of local interface of this link

remote Ipv4Address

address of "gateway" to peer

metric double

link metric

MaxBandwidth double

maximum bandwidth (bps)

UnResvBandwidth double[8]

unreserved bandwidths --FIXME indexed by what?

timestamp simtime_t

time of originating this entry

sourceId unsigned int

FIXME looks like this is the same as advrouter -- really needed?

messageId unsigned int

id assigned to originating LinkStateMsg (FIXME or?)

state bool

false = down, true = up

Source code

//
// Represents a link in the ~Ted and in ~LinkStateMsg packets.
//
struct TeLinkStateInfo
{
    @packetData;
    Ipv4Address advrouter; // routerId of originator of this link state entry
    Ipv4Address linkid;    // identifies link within advrouter; set to peer's address
    Ipv4Address local;     // address of local interface of this link
    Ipv4Address remote;    // address of "gateway" to peer
    double metric;       // link metric
    double MaxBandwidth; // maximum bandwidth (bps)
    double UnResvBandwidth[8]; // unreserved bandwidths --FIXME indexed by what?

    simtime_t timestamp;    // time of originating this entry
    unsigned int sourceId;  // FIXME looks like this is the same as advrouter -- really needed?
    unsigned int messageId; // id assigned to originating ~LinkStateMsg (FIXME or?)
    bool state;             // false = down, true = up
}

File: src/inet/networklayer/ted/Ted.msg