_protocols.h 504 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "continuity.h"
  3. #include "fastpair.h"
  4. #include "easysetup.h"
  5. #include "swiftpair.h"
  6. union ProtocolCfg {
  7. ContinuityCfg continuity;
  8. FastpairCfg fastpair;
  9. EasysetupCfg easysetup;
  10. SwiftpairCfg swiftpair;
  11. };
  12. extern const Protocol* protocols[];
  13. extern const size_t protocols_count;
  14. typedef struct {
  15. bool random_mac;
  16. ProtocolCfg cfg;
  17. } Payload;
  18. struct Attack {
  19. const char* title;
  20. const char* text;
  21. const Protocol* protocol;
  22. Payload payload;
  23. };