X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Froute.c;h=450baf9049159e944174f86b1c0623d6fd0c19ea;hb=8f8d796e645653f5620322f3f1f37552c01db86e;hp=a8516d07fc367d14243c7fd50b8f8118875e1d47;hpb=ae098a93ff90b51b591cd371bef2a5813d8d41f0;p=meshlink diff --git a/src/route.c b/src/route.c index a8516d07..450baf90 100644 --- a/src/route.c +++ b/src/route.c @@ -43,7 +43,7 @@ static bool ratelimit(int frequency) { return false; } -static bool checklength(node_t *source, vpn_packet_t *packet, length_t length) { +static bool checklength(node_t *source, vpn_packet_t *packet, uint16_t length) { if(packet->len < length) { logger(DEBUG_TRAFFIC, LOG_WARNING, "Got too short packet from %s (%s)", source->name, source->hostname); return false;