diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-02-28 11:20:49 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-02-28 11:20:49 +0100 |
commit | bba51a20374648eec948113cfe1f0cd298bbe771 (patch) | |
tree | 157dae2e808c7407118782bc0ffce5cecf4612d3 /llmnr.h | |
parent | a90f8b45355f32376cc127a33b0d1dbed419d293 (diff) |
llmnrd: Poll hostname
Poll "/proc/sys/kernel/hostname" and update the hostname when it was
changed. systemd has a similar mechanism.
Note that the hostname is not polled if it has been provided on the
command line, or if "/proc/sys/kernel/hostname" cannot be opened.
Patch contributed by @tbetker
Fixes #23
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr.h')
-rw-r--r-- | llmnr.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <stdbool.h> +void llmnr_set_hostname(const char *hostname); void llmnr_init(const char *hostname, bool ipv6); void llmnr_recv(int sock); |