]> git.meshlink.io Git - meshlink/blobdiff - src/graph.c
Improved PMTU probe algorithm.
[meshlink] / src / graph.c
index 9a2bfb191e77beb068ceb52477680761da96c94e..f68cf008472870cdc3d85a6cd86d384e6e87d7d5 100644 (file)
@@ -162,8 +162,6 @@ static void check_reachability(meshlink_handle_t *mesh) {
                        n->maxmtu = MTU;
                        n->minmtu = 0;
                        n->mtuprobes = 0;
-
-                       timeout_del(&mesh->loop, &n->mtutimeout);
                }
 
                if(n->status.visited != n->status.reachable) {
@@ -193,7 +191,7 @@ static void check_reachability(meshlink_handle_t *mesh) {
                        n->minmtu = 0;
                        n->mtuprobes = 0;
 
-                       timeout_del(&mesh->loop, &n->mtutimeout);
+                       timeout_del(&mesh->loop, &n->udp_ping_timeout);
 
                        if(!n->status.blacklisted) {
                                update_node_status(mesh, n);