Compound Module FailedRouter

File: Nodes/INET/FailedRouter.ned

A failed IP router. Simply discards all packets it receives, and that's all.

dummy: Dummy

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

Contains the following modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

Dummy

Implementation of a failed router. Does nothing and simply discards any incoming messages.

Parameters:

Name Type Description
namid numeric
routingFile string

Gates:

Name Direction Description
in [ ] input
out [ ] output
ethIn [ ] input
ethOut [ ] output

Unassigned submodule parameters:

Name Type Description

Source code:

module FailedRouter
    parameters:
        namid: numeric,
        routingFile: string;
    gates:
        in: in[];
        out: out[];
        in: ethIn[];
        out: ethOut[];
    submodules:
        dummy: Dummy;
            parameters:
                namid = namid;
            gatesizes:
                in[sizeof(in)],
                out[sizeof(out)],
                ethIn[sizeof(ethIn)],
                ethOut[sizeof(ethOut)];
    connections nocheck:
        for i=0..sizeof(out)-1 do
            in[i] --> dummy.in[i];
            dummy.out[i] --> out[i];
        endfor;
        for i=0..sizeof(ethOut)-1 do
            ethIn[i] --> dummy.ethIn[i];
            dummy.ethOut[i] --> ethOut[i];
        endfor;
endmodule