From 1fc06c6e4f69351d6067537c34b7f106b18b6d33 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 10 May 2013 13:45:09 -0400 Subject: [PATCH] ifchd: Print NYI messages to log if we received a command where the handler is not yet implemented. --- ifchd/ifchd.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ifchd/ifchd.c b/ifchd/ifchd.c index 1f7c3ff..6d644de 100644 --- a/ifchd/ifchd.c +++ b/ifchd/ifchd.c @@ -252,7 +252,9 @@ static void write_resolve_conf(struct ifchd_client *cl) /* XXX: addme */ void perform_timezone(struct ifchd_client *cl, const char *str, size_t len) -{} +{ + log_line("Timezone setting NYI: '%s'", str); +} /* Add a dns server to the /etc/resolv.conf -- we already have a fd. */ void perform_dns(struct ifchd_client *cl, const char *str, size_t len) @@ -266,7 +268,9 @@ void perform_dns(struct ifchd_client *cl, const char *str, size_t len) /* Updates for print daemons are too non-standard to be useful. */ void perform_lprsvr(struct ifchd_client *cl, const char *str, size_t len) -{} +{ + log_line("Line printer server setting NYI: '%s'", str); +} /* Sets machine hostname. */ void perform_hostname(struct ifchd_client *cl, const char *str, size_t len) @@ -292,11 +296,15 @@ void perform_domain(struct ifchd_client *cl, const char *str, size_t len) /* I don't think this can be done without a netfilter extension * that isn't in the mainline kernels. */ void perform_ipttl(struct ifchd_client *cl, const char *str, size_t len) -{} +{ + log_line("TTL setting NYI: '%s'", str); +} /* XXX: addme */ void perform_ntpsrv(struct ifchd_client *cl, const char *str, size_t len) -{} +{ + log_line("NTP server setting NYI: '%s'", str); +} /* Maybe Samba cares about this feature? I don't know. */ void perform_wins(struct ifchd_client *cl, const char *str, size_t len)