#include "macstorage.h" #include "log.h" #include "tc.h" #include #include #include #include #include static uint8_t stop; #define MAXENTRIES 30 struct Entry { uint8_t mac[6]; time_t timestamp; uint8_t prio; } storage[MAXENTRIES]; uint8_t usedPrio[MAXENTRIES]; size_t count = 0; pthread_mutex_t mux; uint8_t _getNextFreePrio() { for (size_t i=0; i