Code

src/liboping.c: Fixed the handling of multiple hosts.
authorSebastian Harl <sh@tokkee.org>
Fri, 17 Jul 2009 07:41:58 +0000 (09:41 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 17 Jul 2009 07:41:58 +0000 (09:41 +0200)
commit288bac33067ea6c88e2399a8b5ddae051aaaa547
treecb6e453eff67b0b457c2d32f23a8ab69e2091ab1
parent2af6e8235f7843a86f6ec519655617f8b114a935
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.
src/liboping.c