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_ETHERLLC_H
00019 #define __INET_ETHERLLC_H
00020
00021 #include "Ethernet.h"
00022 #include "EtherFrame_m.h"
00023
00024
00028 class INET_API EtherLLC : public cSimpleModule
00029 {
00030 protected:
00031 int seqNum;
00032 std::map<int,int> dsapToPort;
00033
00034
00035 long dsapsRegistered;
00036 long totalFromHigherLayer;
00037 long totalFromMAC;
00038 long totalPassedUp;
00039 long droppedUnknownDSAP;
00040
00041 protected:
00042 virtual void initialize();
00043 virtual void handleMessage(cMessage *msg);
00044 virtual void finish();
00045
00046 virtual void processPacketFromHigherLayer(cPacket *msg);
00047 virtual void processFrameFromMAC(EtherFrameWithLLC *msg);
00048 virtual void handleRegisterSAP(cMessage *msg);
00049 virtual void handleDeregisterSAP(cMessage *msg);
00050 virtual void handleSendPause(cMessage *msg);
00051 virtual int findPortForSAP(int sap);
00052
00053
00054 virtual void updateDisplayString();
00055 };
00056
00057 #endif
00058
00059