aboutsummaryrefslogtreecommitdiffstats
path: root/mtu.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-03-05 15:07:08 +0200
committerTimo Teras <timo.teras@iki.fi>2009-03-05 15:07:08 +0200
commit667a65083f615d528ea0fd439a1d8d241c012cb0 (patch)
treeb2a713318c1ac6c83c7ce19762fdb9dda47197f8 /mtu.c
parentca2533ac4521a1386a4e118256243aa32202d538 (diff)
downloadpingu-667a65083f615d528ea0fd439a1d8d241c012cb0.tar.bz2
pingu-667a65083f615d528ea0fd439a1d8d241c012cb0.tar.xz
mtu: handle pmtu properly
Fix a typo from previous commit to enable handling of pmtu responses.
Diffstat (limited to 'mtu.c')
-rw-r--r--mtu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtu.c b/mtu.c
index 1709b69..cc75e1e 100644
--- a/mtu.c
+++ b/mtu.c
@@ -81,7 +81,7 @@ static int discover_mtu(void)
try_mtu = 1500/2;
while (1) {
r = do_ping(seq++, try_mtu * 2);
- if (r > 0 && r < try_mtu) {
+ if (r > 0 && r < try_mtu * 2) {
/* pmtu */
high_mtu = r/2;
try_mtu = high_mtu;