author | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 09:35:08 +0000 (10:35 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 09:35:08 +0000 (10:35 +0100) | ||
commit | 897363971a06acac0552ea2fedc9e518bd09bff2 | |
tree | 42d3cbe78d2725d94a2d09f3d3661157dbe2cbc8 | tree | snapshot |
parent | 2ee0742ef46a315cff429abda2581cc8f7a05913 | commit | diff |
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'.
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 | diff | blob | history | |
src/mans/ping_host_add.pod | diff | blob | history | |
src/mans/ping_iterator_get_info.pod | diff | blob | history | |
src/oping.h | diff | blob | history |