mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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..
This commit is contained in:
parent
6d529e4303
commit
363d7bbe50
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27945
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue