Code

src/liboping.c: Added the `username' field which holds the name provided by the user.
authorFlorian Forster <octo@verplant.org>
Sat, 26 Jan 2008 09:35:08 +0000 (10:35 +0100)
committerFlorian Forster <octo@verplant.org>
Sat, 26 Jan 2008 09:35:08 +0000 (10:35 +0100)
commit897363971a06acac0552ea2fedc9e518bd09bff2
tree42d3cbe78d2725d94a2d09f3d3661157dbe2cbc8
parent2ee0742ef46a315cff429abda2581cc8f7a05913
src/liboping.c: Added the `username' field which holds the name provided by the user.

Alex Brooks has reported that he cannot reliably remove hosts he added without
a fully qualified domain name, such as `foobar'. The reason is that the
`hostname' the user provided is replaced with the `canonical hostname', if they
differ. To fix this problem I introduced a new fields `username' which holds
the hostname as it was supplied by the user. This is the only name checked when
removing a host now.

Applications may access this name using the new `PING_INFO_USERNAME' option for
`ping_iterator_get_info'.
src/liboping.c
src/mans/ping_host_add.pod
src/mans/ping_iterator_get_info.pod
src/oping.h