Ieee8022Llc¶
Package: inet.linklayer.ieee8022
simple module Ieee8022Llc
(no description)
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
A simplified network device that communicates directly over Ethernet without higher layer protocols like IP or TCP. It provides a basic host model for Ethernet-only simulations. |
|
compound module |
EthernetSwitch models a Layer 2 Ethernet switch with support for various IEEE 802.1 protocols and features. It provides frame forwarding based on MAC addresses and implements multiple switching technologies. |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
simple module |
An LLC implementation that encapsulates packets in an LLC header, using IEEE 802 LPD-style encoding. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for all INET simple modules. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
registerProtocol |
bool |
false |
FIXME //KLUDGE should redesign the placement of EthernetEncapsulation and LLC modules |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
Ieee8022Llc |
|
display |
i=block/layer |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
upperLayerIn |
input |
TODO accepts packets and socket commands with @messageKinds(inet::SocketCommandCode) as well |
|
upperLayerOut |
output |
TODO sends packets and socket indications with @messageKinds(inet::SocketStatusInd) as well |
|
lowerLayerIn |
input |
||
lowerLayerOut |
output |
Signals¶
Name |
Type |
Unit |
Description |
|---|---|---|---|
packetDropped |
Source code¶
simple Ieee8022Llc extends SimpleModule like IIeee8022Llc
{
parameters:
@class(Ieee8022Llc);
bool registerProtocol = default(false); //FIXME //KLUDGE should redesign the placement of EthernetEncapsulation and LLC modules
@display("i=block/layer");
@signal[packetDropped](type=inet::Packet);
gates:
input upperLayerIn; // TODO accepts packets and socket commands with @messageKinds(inet::SocketCommandCode) as well
output upperLayerOut; // TODO sends packets and socket indications with @messageKinds(inet::SocketStatusInd) as well
input lowerLayerIn;
output lowerLayerOut;
}