X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fscript.c;h=e5b83415561729f77e72109b6986234d497ab38b;hb=be05c0ded0257cbb82857f6d01226ef6de28befe;hp=bda9749ec27eb66ba336b16414378c8669af2576;hpb=dbf89816bd12d727dc7b006406f619ff3d2da382;p=odhcp6c.git diff --git a/src/script.c b/src/script.c index bda9749..e5b8341 100644 --- a/src/script.c +++ b/src/script.c @@ -188,6 +188,9 @@ static void entry_to_env(const char *name, const void *data, size_t len, enum en buf_len += snprintf(&buf[buf_len], 24, ",%u,%u", e[i].preferred, e[i].valid); } + if ((type == ENTRY_PREFIX || type == ENTRY_ADDRESS) && e[i].class) + buf_len += snprintf(&buf[buf_len], 12, ",class=%u", e[i].class); + if (type == ENTRY_PREFIX && e[i].priority) { // priority and router are abused for prefix exclusion buf_len += snprintf(&buf[buf_len], 12, ",excluded=");