#include <zlib.h>
#endif
-#include "cipher.h"
#include "conf.h"
#include "connection.h"
#include "crypto.h"
-#include "digest.h"
#include "graph.h"
#include "logger.h"
#include "meshlink_internal.h"
if(n->mtuprobes > 32) {
if(!n->minmtu) {
n->mtuprobes = 31;
- timeout = pinginterval;
+ timeout = mesh->pinginterval;
goto end;
}
}
if(n->mtuprobes == 31) {
- timeout = pinginterval;
+ timeout = mesh->pinginterval;
goto end;
} else if(n->mtuprobes == 32) {
- timeout = pingtimeout;
+ timeout = mesh->pingtimeout;
}
for(int i = 0; i < 4 + mesh->localdiscovery; i++) {
len = 64;
vpn_packet_t packet;
+ packet.probe = true;
memset(packet.data, 0, 14);
randomize(packet.data + 14, len - 14);
packet.len = len;
n = try_harder(&from, &pkt);
if(n)
update_node_udp(n, &from);
- else if(debug_level >= DEBUG_PROTOCOL) {
+ else if(mesh->debug_level >= DEBUG_PROTOCOL) {
hostname = sockaddr2hostname(&from);
logger(DEBUG_PROTOCOL, LOG_WARNING, "Received UDP packet from unknown source %s", hostname);
free(hostname);