From e97e9b22cb6061070611212a06756fb493846955 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Jan 2015 14:44:27 +0100 Subject: [PATCH] Send MTU probes only once every PingInterval. --- src/net_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net_packet.c b/src/net_packet.c index f666fd9..44f9ef4 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -968,7 +968,7 @@ static void try_mtu(node_t *n) { /* mtuprobes == 0..19: initial discovery, send bursts with 1 second interval, mtuprobes++ mtuprobes == 20: fix MTU, and go to -1 - mtuprobes == -1: send one >maxmtu probe every pingtimeout */ + mtuprobes == -1: send one >maxmtu probe every pinginterval */ struct timeval elapsed; timersub(&now, &n->mtu_ping_sent, &elapsed); @@ -976,7 +976,7 @@ static void try_mtu(node_t *n) { if(n->mtuprobes != 0 && elapsed.tv_sec == 0 && elapsed.tv_usec < 333333) return; } else { - if(elapsed.tv_sec < pingtimeout) + if(elapsed.tv_sec < pinginterval) return; } -- 2.25.1