Simple Module EtherEncapVlans

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

C++ definition

TODO auto-generated module

EtherEncapVlans

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
vlans string ""
vlan_txrate double 100Mbps

Properties:

Name Value Description
display i=block/square

Space separated vlan list (to be registered)

Gates:

Name Direction Size Description
upperLayerIn input

higher layer

upperLayerOut output

higher layer

lowerLayerIn input

to Ethernet MAC

lowerLayerOut output

to Ethernet MAC

Source code:

//
// TODO auto-generated module
//
simple EtherEncapVlans
{
    parameters:
        @display("i=block/square");
         // Space separated vlan list (to be registered)
        string vlans = default("");
        double vlan_txrate @unit("bps") = default(100Mbps);
    gates:
        input upperLayerIn;   // higher layer
        output upperLayerOut; // higher layer
        input lowerLayerIn;   // to Ethernet MAC
        output lowerLayerOut; // to Ethernet MAC
}