NED File src/ForwTable/FwTable.ned

Name Description
FwTable (simple module)

The Forwarding Table

Source code:

//
// Copyright (C) 2011 Nikolaos Vastardis; University of Essex, Colchester
//
// 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 pubsub_sim.ForwTable;

//
// <b> The Forwarding Table </b>
//
// Stores the forwarding table. (Per-interface configuration is stored in
// InterfaceTable). It is used by the Forwarder module of every PSRouter
// in order to forward the publish subscribe packets (PSErtherApp.msg) to
// the correct route.
//
// This module has no gates; all functionality can be accessed via member
// functions of the C++ module class. For detailed info, please see the C++
// documentation of the class (Doxygen).
//
// @see Forwarder
//
// @author: Nikolaos Vastardis
//
simple FwTable
{
    parameters:
        string routerId = default("auto"); // for routers, the router id using IP address dotted
                          // notation; specify "auto" to select the highest
                          // interface address; should be left empty ("") for hosts
        bool IPForward = default(true);  // turns IP forwarding on/off
        string routingFile = default("");  // routing table file name
        @display("i=block/table");
}