NextHopRoutingTable

Package: inet.networklayer.nexthop

NextHopRoutingTable

simple module

C++ definition

Stores next hop routes used by the next hop forwarding protocol.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Used in compound modules

Name Type Description
NextHopNetworkLayer compound module

Provides a network layer for the next hop forwarding.

Extends

Name Type Description
SimpleModule simple module

Base module for all INET simple modules.

Parameters

Name Type Default value Description
displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

interfaceTableModule string

The path to the InterfaceTable module

addressType string "modulepath"
routerId string "auto"

For routers, the router id using address dotted notation; specify "auto" to select the highest interface address; should be left empty ("") for hosts

forwarding bool true

Turns IP forwarding on/off

multicastForwarding bool false

Turns multicast forwarding on/off

Properties

Name Value Description
class NextHopRoutingTable
display i=block/table

Signals

Name Type Unit Description
routeDeleted inet::NextHopRoute
routeChanged inet::NextHopRoute
routeAdded inet::NextHopRoute

Source code

//
// Stores next hop routes used by the next hop forwarding protocol.
//
simple NextHopRoutingTable extends SimpleModule like IRoutingTable
{
    parameters:
        @class(NextHopRoutingTable);
        string interfaceTableModule;   // The path to the InterfaceTable module
        @display("i=block/table");
        string addressType @enum("mac","modulepath","moduleid") = default("modulepath");
        string routerId = default("auto"); // For routers, the router id using address dotted
                          // notation; specify "auto" to select the highest
                          // interface address; should be left empty ("") for hosts
        bool forwarding = default(true);  // Turns IP forwarding on/off
        bool multicastForwarding = default(false); // Turns multicast forwarding on/off
        @signal[routeAdded](type=inet::NextHopRoute);
        @signal[routeDeleted](type=inet::NextHopRoute);
        @signal[routeChanged](type=inet::NextHopRoute);
}

File: src/inet/networklayer/nexthop/NextHopRoutingTable.ned