Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EtherFrame Class Reference

#include <EtherFrame_m.h>

Inheritance diagram for EtherFrame:

EtherFrameWithLLC EtherFrameWithSNAP EthernetIIFrame EtherPauseFrame List of all members.

Public Methods

 EtherFrame (const char *name=NULL, int kind=0)
 EtherFrame (const EtherFrame &other)
virtual ~EtherFrame ()
EtherFrame & operator= (const EtherFrame &other)
virtual cObject * dup () const
virtual MACAddressgetDest ()
virtual void setDest (const MACAddress &dest_var)
virtual MACAddressgetSrc ()
virtual void setSrc (const MACAddress &src_var)

Protected Attributes

MACAddress dest_var
MACAddress src_var

Constructor & Destructor Documentation

EtherFrame::EtherFrame const char *    name = NULL,
int    kind = 0
 

Definition at line 20 of file EtherFrame_m.cc.

Referenced by dup().

00020                                                  : cMessage(name,kind)
00021 {
00022     unsigned int i;
00023 }

EtherFrame::EtherFrame const EtherFrame &    other
 

Definition at line 25 of file EtherFrame_m.cc.

References operator=().

00025                                               : cMessage()
00026 {
00027     unsigned int i;
00028     setName(other.name());
00029     operator=(other);
00030 }

EtherFrame::~EtherFrame   [virtual]
 

Definition at line 32 of file EtherFrame_m.cc.

00033 {
00034     unsigned int i;
00035 }


Member Function Documentation

virtual cObject* EtherFrame::dup   const [inline, virtual]
 

Reimplemented in EthernetIIFrame, EtherFrameWithLLC, EtherFrameWithSNAP, and EtherPauseFrame.

Definition at line 28 of file EtherFrame_m.h.

References EtherFrame().

Referenced by MACRelayUnitBase::broadcastFrame().

00028 {return new EtherFrame(*this);}

MACAddress & EtherFrame::getDest   [virtual]
 

Definition at line 47 of file EtherFrame_m.cc.

References dest_var.

Referenced by EtherFrameDescriptor::getFieldAsString(), EtherFrameDescriptor::getFieldStructPointer(), MACRelayUnitBase::handleAndDispatchFrame(), EtherLLC::processFrameFromMAC(), EtherEncap::processFrameFromMAC(), EtherMAC::processFrameFromUpperLayer(), and EtherMAC::processReceivedDataFrame().

00048 {
00049     return dest_var;
00050 }

MACAddress & EtherFrame::getSrc   [virtual]
 

Definition at line 57 of file EtherFrame_m.cc.

References src_var.

Referenced by EtherFrameDescriptor::getFieldAsString(), EtherFrameDescriptor::getFieldStructPointer(), MACRelayUnitBase::handleAndDispatchFrame(), EtherLLC::processFrameFromMAC(), EtherEncap::processFrameFromMAC(), and EtherMAC::processFrameFromUpperLayer().

00058 {
00059     return src_var;
00060 }

EtherFrame & EtherFrame::operator= const EtherFrame &    other
 

Definition at line 37 of file EtherFrame_m.cc.

References dest_var, and src_var.

Referenced by EtherFrame(), EtherPauseFrame::operator=(), EtherFrameWithSNAP::operator=(), EtherFrameWithLLC::operator=(), and EthernetIIFrame::operator=().

00038 {
00039     if (this==&other) return *this;
00040     unsigned int i;
00041     cMessage::operator=(other);
00042     this->dest_var = other.dest_var;
00043     this->src_var = other.src_var;
00044     return *this;
00045 }

void EtherFrame::setDest const MACAddress   dest_var [virtual]
 

Definition at line 52 of file EtherFrame_m.cc.

Referenced by EtherLLC::processPacketFromHigherLayer(), and EtherEncap::processPacketFromHigherLayer().

00053 {
00054     this->dest_var = dest_var;
00055 }

void EtherFrame::setSrc const MACAddress   src_var [virtual]
 

Definition at line 62 of file EtherFrame_m.cc.

Referenced by EtherMAC::processFrameFromUpperLayer(), and EtherEncap::processPacketFromHigherLayer().

00063 {
00064     this->src_var = src_var;
00065 }


Member Data Documentation

MACAddress EtherFrame::dest_var [protected]
 

Definition at line 21 of file EtherFrame_m.h.

Referenced by getDest(), and operator=().

MACAddress EtherFrame::src_var [protected]
 

Definition at line 22 of file EtherFrame_m.h.

Referenced by getSrc(), and operator=().


The documentation for this class was generated from the following files:
Generated on Sat May 15 20:30:46 2004 for Ethernet by doxygen1.2.17