Simple Module EtherMacVlan

Package: Vlans.linklayer
File: src/linklayer/EtherMacVlan.ned

C++ definition

TODO auto-generated module

EtherMacVlan

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:

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

EtherVlanInterface (compound module)

TODO auto-generated module

Parameters:

Name Type Default value Description
promiscuous bool true

ALWAYS TRUE... LLC Will take care...

address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

txQueueLimit int 1000

maximum number of frames queued up for transmission; additional frames are dropped. Only used if queueModule==""

queueModule string ""

name of optional external queue module

mtu int 1500

Properties:

Name Value Description
display i=block/rxtx

Gates:

Name Direction Size Description
upperLayerIn input

to EtherLLC or MACRelayUnitPP

upperLayerOut output

to EtherLLC or MACRelayUnitPP

phys inout

to physical layer or the network

Source code:

//
// TODO auto-generated module
//
simple EtherMacVlan
{
    parameters:

        @display("i=block/rxtx");

        bool promiscuous = default(true); // ALWAYS TRUE... LLC Will take care...
        string address = default("auto");  // MAC address as hex string (12 hex digits), or
                                // "auto". "auto" values will be replaced by
                                // a generated MAC address in init stage 0.
        double txrate @unit("bps") = default(100Mbps); // maximum data rate supported by this station (bit/s);
                                // actually chosen speed may be lower due to auto-
                                // configuration. 0 means fully auto-configured.
        bool duplexEnabled = default(true);   // whether duplex mode can be enabled or not; whether
                                // MAC will actually use duplex mode depends on the result
                                // of the auto-configuration process (duplex is only
                                // possible with DTE-to-DTE connection).
        int txQueueLimit = default(1000); // maximum number of frames queued up for transmission;
                                // additional frames are dropped. Only used if queueModule==""
        string queueModule = default("");    // name of optional external queue module
        int mtu = default(1500);

    gates:
        input upperLayerIn;    // to EtherLLC or MACRelayUnitPP
        output upperLayerOut;  // to EtherLLC or MACRelayUnitPP
        inout phys @labels(ether); // to physical layer or the network
}