diff options
author | Steven Barth <steven@midlink.org> | 2015-04-12 09:15:22 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-12 09:15:22 +0200 |
commit | b5afadae8ed69c98f4e9e6a33dfaf570c5bd9b51 (patch) | |
tree | d40d5dcd6c5ea70ab5a7ea6253954b8c4137db40 /src/script.c | |
parent | c3bbeced0f204b6b9571148ae84227105baaf179 (diff) | |
download | odhcp6c-b5afadae8ed69c98f4e9e6a33dfaf570c5bd9b51.tar.gz |
Remove obsolete prefix class support
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/script.c b/src/script.c index 2c34216..f8d440f 100644 --- a/src/script.c +++ b/src/script.c @@ -163,9 +163,7 @@ 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); - else if (type == ENTRY_PREFIX && ntohl(e[i].iaid) != 1) + 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) { |