]> git.meshlink.io Git - meshlink/blobdiff - src/pmtu.c
Send a PING packet on a meta-connection if a UDP ping failed.
[meshlink] / src / pmtu.c
index 4073825cfdc56f65d722395f257516fb81fed820..d91919eed40f9e95a653f00d7cad55389cd293a7 100644 (file)
@@ -93,6 +93,13 @@ static void udp_probe_timeout_handler(event_loop_t *loop, void *data) {
        n->mtuprobes = 0;
        n->minmtu = 0;
        n->maxmtu = MTU;
+
+       // If we also have a meta-connection to this node, send a PING on it as well
+       connection_t *c = n->connection;
+
+       if(c && !c->status.pinged) {
+               send_ping(mesh, c);
+       }
 }
 
 static void send_udp_probe_reply(meshlink_handle_t *mesh, node_t *n, vpn_packet_t *packet, uint16_t len) {