author | Florian Forster <octo@collectd.org> | |
Fri, 5 Oct 2012 08:21:17 +0000 (10:21 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 5 Oct 2012 08:21:17 +0000 (10:21 +0200) | ||
commit | 859b1bd5fe320d1c71de5893746107d28b91a8e1 | |
tree | 71086cc14425a35562406adcad3d39d59c11874f | tree | snapshot |
parent | f954910fae1dfd7055316065392635980d8a4cbe | commit | diff |
ntpd plugin: Refactor the peer name generation.
Break it out of the main read-loop and put it into two functions: One for the
reference clocks and one for network hosts. The reference clock code will call
the network host code when the clock name is not available in the internal list
of reference clock names. This eliminates the (thread-unsafe) usage of
inet_ntoa(3).
Break it out of the main read-loop and put it into two functions: One for the
reference clocks and one for network hosts. The reference clock code will call
the network host code when the clock name is not available in the internal list
of reference clock names. This eliminates the (thread-unsafe) usage of
inet_ntoa(3).
src/ntpd.c | diff | blob | history |