Package: inet.linklayer.ethernet.switch
MACAddressTable
simple moduleThis module handles the mapping between ports and MAC addresses.
Entries are deleted if their age exceeds a certain limit.
If needed, address tables can be pre-loaded from text files at the beginning of the simulation; this controlled by the addressTableFile module parameter.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
agingTime | double | 120s | |
addressTableFile | string | "" |
Properties
Name | Value | Description |
---|---|---|
display | i=block/table2 |
Source code
// // This module handles the mapping between ports and MAC addresses. // // Entries are deleted if their age exceeds a certain limit. // // If needed, address tables can be pre-loaded from text files at the beginning // of the simulation; this controlled by the addressTableFile module parameter. // simple MACAddressTable like IMACAddressTable { parameters: @display("i=block/table2"); double agingTime @unit("s") = default(120s); string addressTableFile = default(""); }File: src/inet/linklayer/ethernet/switch/MACAddressTable.ned