X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fscript.c;h=7368080bc84c870a3db53647603d15f3fababa65;hb=78db615ec88b899b047a0f47eb74e9ef0ff5a7fe;hp=43af9884c9e0999f2fec22a9e34246ffc2dd35e1;hpb=2fb6a6ccb4e367b616966326428b2d5d71de978c;p=odhcp6c.git diff --git a/src/script.c b/src/script.c index 43af988..7368080 100644 --- a/src/script.c +++ b/src/script.c @@ -152,6 +152,8 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority); } else { buf_len += snprintf(&buf[buf_len], 24, ",%u,%u", e[i].preferred, e[i].valid); + if (e[i].prefix_class) + buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].prefix_class); } } buf[buf_len++] = ' '; @@ -164,7 +166,6 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho 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, sntp_ip_len, sntp_dns_len; size_t sip_ip_len, sip_fqdn_len;