int interval = n->status.udp_confirmed ? 10 : 2;
- logger(mesh, MESHLINK_DEBUG, "try_udp(%s) %d %d\n", n->name, (int)elapsed.tv_sec, interval);
-
if(elapsed.tv_sec >= interval) {
n->last_udp_probe_sent = mesh->loop.now;
send_udp_probe_packet(mesh, n, MIN_PROBE_SIZE);
*/
static void try_pmtu(meshlink_handle_t *mesh, node_t *n) {
- logger(mesh, MESHLINK_DEBUG, "try_pmtu(%s) %d %d\n", n->name, n->mtuprobes, n->status.udp_confirmed);
-
if(!n->status.udp_confirmed) {
n->mtuprobes = 0;
n->minmtu = 0;
*/
void keepalive(meshlink_handle_t *mesh, node_t *n, bool traffic) {
- logger(mesh, MESHLINK_DEBUG, "keepalive(%s) %d %d\n", n->name, n->status.reachable, n->status.validkey);
-
if(!n->status.reachable || !n->status.validkey) {
return;
}