NED File src/inet/networklayer/nexthop/NextHopRoutingTable.ned
Name | Type | Description |
---|---|---|
NextHopRoutingTable | simple module |
This module stores next hop routes used by the next hop forwarding protocol. |
Source code
// // Copyright (C) 2012 Opensim Ltd. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program; if not, see <http://www.gnu.org/licenses/>. package inet.networklayer.nexthop; import inet.networklayer.contract.IRoutingTable; // // This module stores next hop routes used by the next hop forwarding protocol. // simple NextHopRoutingTable 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[routeAdded](type=inet::NextHopRoute); @signal[routeDeleted](type=inet::NextHopRoute); @signal[routeChanged](type=inet::NextHopRoute); }