]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/script.c
Don't export IAID as class if IAID is 1 (default)
[odhcp6c.git] / src / script.c
index 86a93955c2e1386acb7bb9be005e1b09c0c7ba1c..92bc46481b3bf993992916e32db9bc4785b2aa4c 100644 (file)
@@ -190,7 +190,7 @@ 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)
+                       else if (type == ENTRY_PREFIX && ntohl(e[i].iaid) != 1)
                                buf_len += snprintf(&buf[buf_len], 16, ",class=%08x", ntohl(e[i].iaid));
 
                        if (type == ENTRY_PREFIX && e[i].priority) {