Simple Module GenericRoutingTable

Package: inet.networklayer.generic
File: src/inet/networklayer/generic/GenericRoutingTable.ned

C++ definition

This module stores generic routes used by the generic network protocol.

GenericRoutingTable

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

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

Parameters:

Name Type Default value Description
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
display i=block/table

Signals:

Name Type Unit
NF_ROUTE_DELETED GenericRoute
NF_ROUTE_ADDED GenericRoute
NF_ROUTE_CHANGED GenericRoute

Source code:

//
// This module stores generic routes used by the generic network protocol.
//
simple GenericRoutingTable like IRoutingTable
{
    parameters:
        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[NF_ROUTE_ADDED](type=GenericRoute);
        @signal[NF_ROUTE_DELETED](type=GenericRoute);
        @signal[NF_ROUTE_CHANGED](type=GenericRoute);
}