Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 1997 23:23:06 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bkogawa@primenet.com, davidg@freebsd.org, davidg@hub.freebsd.org, freebsd-bugs@hub.freebsd.org
Subject:   Re: bin/4218
Message-ID:  <199708031323.XAA17932@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Ping is working as it was intended. It does indeed wait for
>the received packets, but times out after a short period.

No it doesn't.  It only starts waiting when

	(npackets != 0 && ntransmitted >= npackets)

(where `npackets' is the count for -c), and due to recent breakage,
`ntransmitted' is not incremented when sendto() fails, e.g., in the
"No route to host" case, so some cases never time out.

This also affects the statistics.  I think the non-increment was only
supposed to apply to the ENOBUFS case, mainly for `ping -f' when running
out of buffers is not unexpected.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708031323.XAA17932>