From bba51a20374648eec948113cfe1f0cd298bbe771 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 28 Feb 2017 11:20:49 +0100 Subject: 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 --- llmnr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'llmnr.h') diff --git a/llmnr.h b/llmnr.h index 892ba24..6380ebf 100644 --- a/llmnr.h +++ b/llmnr.h @@ -21,6 +21,7 @@ #include +void llmnr_set_hostname(const char *hostname); void llmnr_init(const char *hostname, bool ipv6); void llmnr_recv(int sock); -- cgit v1.2.3-54-g00ecf