VlanPolicyLayer

Package: inet.linklayer.vlan

VlanPolicyLayer

compound module

(no description)

outboundMapper : like IPacketFlow

VlanReqMapper: This module updates the VlanReq tag on packets.

IPacketFlow: This module interface is implemented by packet flows.

Source:
outboundMapper: <default("VlanReqMapper")> like IPacketFlow {
    @display("p=200,150");
} outboundFilter : like IPacketFilter

VlanReqFilter: This module filters out packets based on the attached VlanReq tag.

IPacketFilter: This module interface is implemented by packet filter modules.

Source:
outboundFilter: <default("VlanReqFilter")> like IPacketFilter {
    @display("p=200,300");
} inboundMapper : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
inboundMapper: <default("")> like IPacketFlow {
    @display("p=500,150");
} inboundFilter : like IPacketFilter

VlanIndFilter: This module filters out packets based on the attached VlanInd tag.

IPacketFilter: This module interface is implemented by packet filter modules.

Source:
inboundFilter: <default("VlanIndFilter")> like IPacketFilter {
    @display("p=500,300");
}

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.

Parameters

Name Type Default value Description
interfaceTableModule string

Properties

Name Value Description
display i=block/layer

Gates

Name Direction Size Description
upperLayerIn input
upperLayerOut output
lowerLayerIn input
lowerLayerOut output

Source code

module VlanPolicyLayer like IProtocolLayer
{
    parameters:
        @display("i=block/layer");
        string interfaceTableModule;
        *.interfaceTableModule = default(absPath(this.interfaceTableModule));
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        outboundMapper: <default("VlanReqMapper")> like IPacketFlow {
            @display("p=200,150");
        }
        outboundFilter: <default("VlanReqFilter")> like IPacketFilter {
            @display("p=200,300");
        }
        inboundMapper: <default("")> like IPacketFlow {
            @display("p=500,150");
        }
        inboundFilter: <default("VlanIndFilter")> like IPacketFilter {
            @display("p=500,300");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> outboundMapper.in;
        outboundMapper.out --> outboundFilter.in;
        outboundFilter.out --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> { @display("m=s"); } --> inboundFilter.in;
        inboundFilter.out --> inboundMapper.in;
        inboundMapper.out --> { @display("m=n"); } --> upperLayerOut;
}
File: src/inet/linklayer/vlan/VlanPolicyLayer.ned