INET Framework for OMNeT++/OMNEST
|
Class generated from inet/linklayer/ethernet/EtherFrame.msg:130
by nedtool.
More...
#include <EtherFrame_m.h>
Public Member Functions | |
EtherFrameWithSNAP (const char *name=nullptr, short kind=0) | |
EtherFrameWithSNAP (const EtherFrameWithSNAP &other) | |
virtual | ~EtherFrameWithSNAP () |
EtherFrameWithSNAP & | operator= (const EtherFrameWithSNAP &other) |
virtual EtherFrameWithSNAP * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual int | getOrgCode () const |
virtual void | setOrgCode (int orgCode) |
virtual int | getLocalcode () const |
virtual void | setLocalcode (int localcode) |
Public Member Functions inherited from inet::EtherFrameWithLLC | |
EtherFrameWithLLC (const char *name=nullptr, short kind=0) | |
EtherFrameWithLLC (const EtherFrameWithLLC &other) | |
virtual | ~EtherFrameWithLLC () |
EtherFrameWithLLC & | operator= (const EtherFrameWithLLC &other) |
virtual int | getDsap () const |
virtual void | setDsap (int dsap) |
virtual int | getSsap () const |
virtual void | setSsap (int ssap) |
virtual int | getControl () const |
virtual void | setControl (int control) |
Public Member Functions inherited from inet::EtherFrame | |
EtherFrame (const char *name=nullptr, short kind=0) | |
EtherFrame (const EtherFrame &other) | |
virtual | ~EtherFrame () |
EtherFrame & | operator= (const EtherFrame &other) |
virtual MACAddress & | getDest () |
virtual const MACAddress & | getDest () const |
virtual void | setDest (const MACAddress &dest) |
virtual MACAddress & | getSrc () |
virtual const MACAddress & | getSrc () const |
virtual void | setSrc (const MACAddress &src) |
Protected Member Functions | |
bool | operator== (const EtherFrameWithSNAP &) |
Protected Member Functions inherited from inet::EtherFrameWithLLC | |
bool | operator== (const EtherFrameWithLLC &) |
Protected Member Functions inherited from inet::EtherFrame | |
bool | operator== (const EtherFrame &) |
Protected Attributes | |
int | orgCode |
int | localcode |
Protected Attributes inherited from inet::EtherFrameWithLLC | |
int | dsap |
int | ssap |
int | control |
Protected Attributes inherited from inet::EtherFrame | |
MACAddress | dest |
MACAddress | src |
Private Member Functions | |
void | copy (const EtherFrameWithSNAP &other) |
Class generated from inet/linklayer/ethernet/EtherFrame.msg:130
by nedtool.
// // Ethernet frame with 802.3 LLC and SNAP headers. // // The ssap, dsap and control LLC fields are set to fixed values in the // frame: 0xAA, 0xAA, 0x03. // // Header length: src(6)+dest(6)+length(2)+ssap(1)+dsap(1)+control(1)+ // orgCode(3)+localCode(2) + FCS(4) = 26 bytes // packet EtherFrameWithSNAP extends EtherFrameWithLLC { byteLength = ETHER_MAC_FRAME_BYTES + ETHER_LLC_HEADER_LENGTH + ETHER_SNAP_HEADER_LENGTH; dsap = 0xAA; ssap = 0xAA; control = 0x03; int orgCode; // organizationally unique identifier (OUI); 0 for protocols that have an EtherType (ARP, IPv4, IPv6, etc.) int localcode; // protocol identifier (PID); stores ~EtherType if orgCode is 0 }
inet::EtherFrameWithSNAP::EtherFrameWithSNAP | ( | const char * | name = nullptr , |
short | kind = 0 |
||
) |
inet::EtherFrameWithSNAP::EtherFrameWithSNAP | ( | const EtherFrameWithSNAP & | other | ) |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::EtherFrameWithLLC.
|
virtual |
Referenced by inet::serializer::EthernetSerializer::serialize().
|
virtual |
Referenced by inet::serializer::EthernetSerializer::serialize().
EtherFrameWithSNAP& inet::EtherFrameWithSNAP::operator= | ( | const EtherFrameWithSNAP & | other | ) |
|
protected |
|
overridevirtual |
Reimplemented from inet::EtherFrameWithLLC.
Referenced by inet::doParsimPacking().
|
overridevirtual |
Reimplemented from inet::EtherFrameWithLLC.
Referenced by inet::doParsimUnpacking().
|
virtual |
|
virtual |
|
protected |
|
protected |