diff options
author | julian <julian@FreeBSD.org> | 1997-08-07 02:41:15 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-08-07 02:41:15 +0000 |
commit | f4c7456c09a561d31c5a32bd092bee2674b6f69c (patch) | |
tree | 324cf96b6b990deabb3e10ecae38aa60b9b56a50 /sbin | |
parent | 9a6e75fa0cb882f24061bc3c7e7d0f2fab8eabf9 (diff) | |
download | FreeBSD-src-f4c7456c09a561d31c5a32bd092bee2674b6f69c.zip FreeBSD-src-f4c7456c09a561d31c5a32bd092bee2674b6f69c.tar.gz |
don't lose track of how many packets we've sent
if we get 'host unreachable'. (or any other errors than ENOBUFS)
makes -c work again even if you can't get there..
This really needs a rework..
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping/ping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 2e615ae..ffab825 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93"; */ static const char rcsid[] = - "$Id: ping.c,v 1.25 1997/07/18 17:52:05 wollman Exp $"; + "$Id: ping.c,v 1.26 1997/07/20 06:09:55 bde Exp $"; #endif /* not lint */ /* @@ -594,8 +594,8 @@ pinger(void) warn("%s: partial write: %d of %d bytes", hostname, cc, i); } - } else - ntransmitted++; /* only count those that made it out */ + } + ntransmitted++; if (!(options & F_QUIET) && options & F_FLOOD) (void)write(STDOUT_FILENO, &DOT, 1); } |