Compound Module OspfLan

Package: inet.examples.ospfv2.fulltest
File: examples/ospfv2/fulltest/FullTest.ned

(no description)

EtherHub StandardHost

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Used in compound modules:

Name Type Description
OSPF_Area1 compound module (no description)
OSPF_Area2 compound module (no description)
OSPF_Area3 compound module (no description)

Networks:

Name Type Description
OSPF_RFC2328_Fig6 network (no description)

Parameters:

Name Type Default value Description
h int

number of hosts on the hub

Properties:

Name Value Description
display i=old/cloud

Gates:

Name Direction Size Description
ethg [ ] inout

Unassigned submodule parameters:

Name Type Default value Description
host.status.initialStatus string "UP"

TODO @signal, @statistic

host.routingTable.forwarding bool
host.routingTable.multicastForwarding bool
host.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

host.pcapRecorder.verbose bool false

whether to log packets on the module output

host.pcapRecorder.pcapFile string ""

the PCAP file to be written

host.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

host.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

host.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

host.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

host.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

host.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

host.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

host.lo0.lo.mtu int 4470B

Source code:

module OspfLan
{
    parameters:
        int h; // number of hosts on the hub
        @display("i=old/cloud");
    gates:
        inout ethg[];
    submodules:
        hub: EtherHub {
            @display("is=s");
        }
        host[h]: StandardHost {
            @display("is=s");
        }
    connections:
        for i=0..sizeof(ethg)-1 {
            hub.ethg++ <--> ethg[i];
        }
        for i=0..h-1 {
            hub.ethg++ <--> C <--> host[i].ethg++;
        }
}