00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef BASE_ARP_H
00021 #define BASE_ARP_H
00022
00023 #include <ArpInterface.h>
00024 #include <AddressingInterface.h>
00025 #include <BaseModule.h>
00026 #include <FindModule.h>
00027
00051 class BaseArp : public ArpInterface,
00052 public AddressingInterface,
00053 public BaseModule
00054 {
00056 bool coreDebug;
00057
00058 public:
00059 virtual void initialize(int stage);
00060
00064 virtual void handleMessage( cMessage* ){
00065 error("ARP module cannot receive messages!");
00066 };
00067
00069 virtual int getMacAddr(const int netwAddr);
00070
00072 virtual int myMacAddr(cModule* mac);
00073
00075 virtual int myNetwAddr(cModule* netw);
00076 };
00077
00078
00079 #endif