Package: inet.linklayer.ethernet.common
RelayInterfaceSelector
simple moduleThis module selects the outgoing interface for the packet passing through from the MAC address table (forwarding information database) based on the destination MAC address. The selected interface is attached to the packet in an InterfaceReq. The packet may be duplicated if multiple interfaces are found.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
PacketPusherBase | simple module |
This is a base module for various packet pusher modules. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
macTableModule | string |
relative module path of MAC table |
|
interfaceTableModule | string |
relative module path of interface table |
Properties
Name | Value | Description |
---|---|---|
display | i=block/fork | |
class | RelayInterfaceSelector |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Signals
Name | Type | Unit |
---|---|---|
packetDropped | inet::Packet |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
packetDropped | packets dropped | count, sum(packetBytes), vector(packetBytes) | none |
Direct method calls (observed)
call to | function | info |
---|---|---|
MessageDispatcher | inet::MessageDispatcher::pushPacket | pushPacket |
MacForwardingTable | inet::MacForwardingTable::getMulticastAddressForwardingInterfaces | getMulticastAddressForwardingInterfaces |
MacForwardingTable | inet::MacForwardingTable::getUnicastAddressForwardingInterface | getUnicastAddressForwardingInterface |
VlanReqMapper | inet::VlanReqMapper::pushPacket | pushPacket |
Called methods (observed)
function | info | call from |
---|---|---|
inet::RelayInterfaceSelector::pushPacket | pushPacket | StreamEncoder, PacketMultiplexer |
Pushed in messages (observed)
Push out messages (observed)
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
DirectionTag | addTagIfAbsent |
DispatchProtocolReq | addTagIfAbsent |
EncapsulationProtocolReq | addTagIfAbsent, findTagForUpdate |
InterfaceInd | findTag |
InterfaceReq | addTagIfAbsent, findTag |
MacAddressReq | getTag |
VlanReq | findTag |
Source code
// // This module selects the outgoing interface for the packet passing through // from the MAC address table (forwarding information database) based on the // destination MAC address. The selected interface is attached to the packet // in an ~InterfaceReq. The packet may be duplicated if multiple interfaces // are found. // simple RelayInterfaceSelector extends PacketPusherBase like IPacketFlow { parameters: string macTableModule; // relative module path of MAC table string interfaceTableModule; // relative module path of interface table @class(RelayInterfaceSelector); @display("i=block/fork"); @signal[packetDropped](type=inet::Packet); @statistic[packetDropped](title="packets dropped"; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none); }File: src/inet/linklayer/ethernet/common/RelayInterfaceSelector.ned