From: Kaspar Schleiser Date: Fri, 24 Jan 2014 13:15:12 +0000 (+0100) Subject: output prefix IAID as prefix class in script X-Git-Tag: debian/1.1+git20160131-1~96 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=94eb28a5b61036a21bf794b99de64daa96170f1e;p=odhcp6c.git output prefix IAID as prefix class in script Contributed by T-Labs, Deutsche Telekom Innovation Laboratories --- diff --git a/src/script.c b/src/script.c index 5a021df..3041fe7 100644 --- a/src/script.c +++ b/src/script.c @@ -190,6 +190,8 @@ static void entry_to_env(const char *name, const void *data, size_t len, enum en if ((type == ENTRY_PREFIX || type == ENTRY_ADDRESS) && e[i].class) buf_len += snprintf(&buf[buf_len], 12, ",class=%u", e[i].class); + else if (type == ENTRY_PREFIX) + buf_len += snprintf(&buf[buf_len], 16, ",class=%08x", ntohl(e[i].iaid)); if (type == ENTRY_PREFIX && e[i].priority) { // priority and router are abused for prefix exclusion