summaryrefslogtreecommitdiffstats
path: root/sbin/ping6
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-01-15 15:10:52 +0000
committerru <ru@FreeBSD.org>2002-01-15 15:10:52 +0000
commitc12a24b71bea2f4515d1caddc5bd1f00d4c0cb7d (patch)
treeff9565886d68978eae8f849f8dbca3985af3259d /sbin/ping6
parent5768c2f3d47f6c7b644d1bb5c7b92ee00626e3db (diff)
downloadFreeBSD-src-c12a24b71bea2f4515d1caddc5bd1f00d4c0cb7d.zip
FreeBSD-src-c12a24b71bea2f4515d1caddc5bd1f00d4c0cb7d.tar.gz
First ping after a preload (-l) was sent undelayed.
PR: bin/32354 Obtained from: ping.c,v 1.61
Diffstat (limited to 'sbin/ping6')
-rw-r--r--sbin/ping6/ping6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 80261a6..4d28c4b 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -985,7 +985,8 @@ main(argc, argv)
itimer.it_interval = interval;
itimer.it_value = interval;
(void)setitimer(ITIMER_REAL, &itimer, NULL);
- retransmit();
+ if (ntransmitted == 0)
+ retransmit();
}
fdmasks = howmany(s + 1, NFDBITS) * sizeof(fd_mask);
OpenPOWER on IntegriCloud