NextHopRoutingTable.ned

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

Name Type Description
NextHopRoutingTable simple module

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

Source code

//
// Copyright (C) 2012 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.networklayer.nexthop;

import inet.common.SimpleModule;
import inet.networklayer.contract.IRoutingTable;

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