diff options
author | Steven Barth <steven@midlink.org> | 2014-01-29 11:55:40 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-01-29 11:55:40 +0100 |
commit | 68300e0f9f318daf5495b5e5ee7d56ad9cff99cf (patch) | |
tree | 709c8fbd85925ab3ba8b5f027388c8594df0c775 /src/script.c | |
parent | 6cda10d0b5f43234b2fefdf1ab94ee341878d010 (diff) | |
download | odhcp6c-68300e0f9f318daf5495b5e5ee7d56ad9cff99cf.tar.gz |
Don't export IAID as class if IAID is 1 (default)
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.c b/src/script.c index 86a9395..92bc464 100644 --- a/src/script.c +++ b/src/script.c @@ -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) { |