X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fscript.c;h=ff81278bf59b6f3e1dd1082634f5086aed1da505;hb=4be3f666fde73be0d7046fac1ab8075aa5b1e8db;hp=2a34ea00191e62779d58a91aa5d7aa7cdd80b93b;hpb=0b77e6065dc833da19ddff6e04e4f09c805c6883;p=odhcp6c.git diff --git a/src/script.c b/src/script.c index 2a34ea0..ff81278 100644 --- a/src/script.c +++ b/src/script.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -156,6 +157,7 @@ static void prefix_to_env(const char *name, const uint8_t *fqdn, size_t len) void script_call(const char *status) { + syslog(LOG_WARNING, "State for %s changed to %s", argv[1], status); size_t dns_len, search_len, custom_len; struct in6_addr *dns = odhcp6c_get_state(STATE_DNS, &dns_len); uint8_t *search = odhcp6c_get_state(STATE_SEARCH, &search_len);