GenericRoutingTable

Package: inet.networklayer.generic

GenericRoutingTable

simple module

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

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 inet::GenericRoute
NF_ROUTE_ADDED inet::GenericRoute
NF_ROUTE_CHANGED inet::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=inet::GenericRoute);
        @signal[NF_ROUTE_DELETED](type=inet::GenericRoute);
        @signal[NF_ROUTE_CHANGED](type=inet::GenericRoute);
}
File: src/inet/networklayer/generic/GenericRoutingTable.ned