From b8b2bb7202425bef9f75d3a9ab66ae2fe5f68046 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 22 Nov 2021 09:07:49 +0100 Subject: [PATCH] Added basic packet-structure --- DTO/packet.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 DTO/packet.hpp diff --git a/DTO/packet.hpp b/DTO/packet.hpp new file mode 100644 index 0000000..ab66a56 --- /dev/null +++ b/DTO/packet.hpp @@ -0,0 +1,19 @@ +#ifndef C42FA9F6_8CF3_453F_8FA0_918E543DCD59 +#define C42FA9F6_8CF3_453F_8FA0_918E543DCD59 + +#include + +struct Packet { + time_t timestamp; + + char srcMac[17]; + char dstMac[17]; + + unsigned int size; + + char signal; + unsigned int frequency; + unsigned char linkSpeed; +}; + +#endif /* C42FA9F6_8CF3_453F_8FA0_918E543DCD59 */