#include "utils.h"
#include "libmeshlink.h"
-rmode_t routing_mode = RMODE_ROUTER;
-fmode_t forwarding_mode = FMODE_INTERNAL;
-bmode_t broadcast_mode = BMODE_MST;
bool decrement_ttl = false;
-bool directonly = false;
-bool priorityinheritance = false;
-int macexpire = 600;
-mac_t mymac = {{0xFE, 0xFD, 0, 0, 0, 0}};
-bool pcap = false;
static bool ratelimit(int frequency) {
static time_t lasttime = 0;
return;
}
- if (directonly && owner!=via) {
- logger(DEBUG_TRAFFIC, LOG_WARNING, "Direct Only is requested. Dropping packet because direct connection not available \n");
- return;
- }
-
send_packet(owner,packet);
return;
}