Code

ping plugin: Fixed a typo when setting the TTL.
authorSebastian Harl <sh@tokkee.org>
Sun, 24 Feb 2008 17:25:14 +0000 (18:25 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 25 Feb 2008 07:29:35 +0000 (08:29 +0100)
commitf91cd5dc6d1deefb404f346e5b3d167865428f76
tree8981f6552cdcfb48dd753dbc9f572840e7f0f208
parentad05cf135ac41af52f761d21f9acd3cd07540c7e
ping plugin: Fixed a typo when setting the TTL.

PING_DEF_TIMEOUT used to be used instead of PING_OPT_TTL as option
argument of ping_setopt(). This caused really strange effects when pinging
hosts, like a failed assertion in ping_timeval_sub() in liboping
indicating a latency <= 0.

Thanks to Romain Francoise for pointing this out and a lot of helpful
debugging information.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/ping.c