Ieee80211TesterMac.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // Copyright (C) 2015 Andras Varga
  3. //
  4. // This program is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public License
  6. // as published by the Free Software Foundation; either version 2
  7. // of the License, or (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program; if not, see http://www.gnu.org/licenses/.
  16. //
  17. //
  18. #ifndef __INET_IEEE80211TESTERMAC_H
  19. #define __INET_IEEE80211TESTERMAC_H
  20. #include "inet/linklayer/ieee80211/mac/Ieee80211Mac.h"
  21. namespace inet {
  22. using namespace ieee80211;
  23. using namespace physicallayer;
  24. class INET_API Ieee80211TesterMac : public Ieee80211Mac
  25. {
  26. protected:
  27. int msgCounter = 0;
  28. const char *actions = nullptr;
  29. protected:
  30. virtual void handleLowerPacket(cPacket *msg) override;
  31. };
  32. } // namespace inet
  33. #endif