Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef __INET_ETHERENCAP_H
00019 #define __INET_ETHERENCAP_H
00020 
00021 #include <stdio.h>
00022 #include "Ethernet.h"
00023 #include "EtherFrame_m.h"
00024 
00028 class INET_API EtherEncap : public cSimpleModule
00029 {
00030   protected:
00031     int seqNum;
00032 
00033     
00034     long totalFromHigherLayer;  
00035     long totalFromMAC;          
00036     long totalPauseSent;        
00037 
00038   protected:
00039     virtual void initialize();
00040     virtual void handleMessage(cMessage *msg);
00041     virtual void finish();
00042 
00043     virtual void processPacketFromHigherLayer(cPacket *msg);
00044     virtual void processFrameFromMAC(EtherFrame *msg);
00045     virtual void handleSendPause(cMessage *msg);
00046 
00047     virtual void updateDisplayString();
00048 };
00049 
00050 #endif
00051 
00052