X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fpmtu.c;fp=src%2Fpmtu.c;h=d91919eed40f9e95a653f00d7cad55389cd293a7;hb=0669c133ef0150e9772711588651c1c4d8e45267;hp=4073825cfdc56f65d722395f257516fb81fed820;hpb=4d333e6cd762b62ce702525e9fd0c76aac678324;p=meshlink diff --git a/src/pmtu.c b/src/pmtu.c index 4073825c..d91919ee 100644 --- a/src/pmtu.c +++ b/src/pmtu.c @@ -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) {