author | Sebastian Harl <sh@tokkee.org> | |
Fri, 17 Jul 2009 07:41:58 +0000 (09:41 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 17 Jul 2009 07:41:58 +0000 (09:41 +0200) | ||
commit | 288bac33067ea6c88e2399a8b5ddae051aaaa547 | |
tree | cb6e453eff67b0b457c2d32f23a8ab69e2091ab1 | tree | snapshot |
parent | 2af6e8235f7843a86f6ec519655617f8b114a935 | commit | diff |
src/liboping.c: Fixed the handling of multiple hosts.
ping_receive_all() used to always pass the first host object to
ping_receive_one() which used that host object to determine the expected
address family. Thus, when pinging v4 and v6 hosts in parallel, some of them
would have never been considered but assumed to be timed out.
While at it, the code has been clarified in regard to matching an ECHO_REPLY
with the appropriate host object.
ping_receive_all() used to always pass the first host object to
ping_receive_one() which used that host object to determine the expected
address family. Thus, when pinging v4 and v6 hosts in parallel, some of them
would have never been considered but assumed to be timed out.
While at it, the code has been clarified in regard to matching an ECHO_REPLY
with the appropriate host object.
src/liboping.c | diff | blob | history |