OspfLan

Package: inet.examples.ospfv2.fulltest

OspfLan

compound module

(no description)

EthernetSwitch StandardHost

Usage diagram

The following diagram shows usage relationships between types. 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)

Used in

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
hub.macTable.agingTime double
hub.macTable.forwardingTableFile string
hub.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

hub.l2NodeConfigurator.interfaceTableModule string
hub.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

hub.status.initialStatus string "UP"

TODO @signal, @statistic

hub.pcapRecorder.verbose bool true

whether to log packets on the module output

hub.pcapRecorder.pcapFile string ""

the PCAP file to be written

hub.pcapRecorder.fileFormat string "pcapng"
hub.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

hub.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

hub.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

hub.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

hub.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

hub.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

hub.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

hub.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

hub.pcapRecorder.alwaysFlush bool false

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

hub.pcapRecorder.displayStringTextFormat string "rec: %n pks"
hub.stp.helloTime double
hub.stp.forwardDelay double
hub.stp.maxAge double
hub.stp.bridgePriority int
hub.stp.visualize bool
hub.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

hub.sc.forwardServiceRegistration bool true
hub.sc.forwardProtocolRegistration bool true
hub.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

hub.cb.forwardServiceRegistration bool true
hub.cb.forwardProtocolRegistration bool true
hub.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

hub.bl.forwardServiceRegistration bool true
hub.bl.forwardProtocolRegistration bool true
hub.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

hub.li.forwardServiceRegistration bool true
hub.li.forwardProtocolRegistration bool true
hub.cutthrough.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

hub.cutthrough.forwardServiceRegistration bool true
hub.cutthrough.forwardProtocolRegistration bool true
hub.eth.bitrate double
host.status.initialStatus string "UP"

TODO @signal, @statistic

host.pcapRecorder.verbose bool true

whether to log packets on the module output

host.pcapRecorder.pcapFile string ""

the PCAP file to be written

host.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

host.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

host.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

host.pcapRecorder.alwaysFlush bool false

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

host.pcapRecorder.displayStringTextFormat string "rec: %n pks"
host.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

host.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.cb.forwardServiceRegistration bool true
host.cb.forwardProtocolRegistration bool true
host.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.bl.forwardServiceRegistration bool true
host.bl.forwardProtocolRegistration bool true
host.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.li.forwardServiceRegistration bool true
host.li.forwardProtocolRegistration bool true
host.eth.bitrate double
host.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.nl.forwardServiceRegistration bool true
host.nl.forwardProtocolRegistration bool true
host.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.tn.forwardServiceRegistration bool true
host.tn.forwardProtocolRegistration bool true
host.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

host.at.forwardServiceRegistration bool true
host.at.forwardProtocolRegistration bool true

Source code

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

File: examples/ospfv2/fulltest/FullTest.ned