X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fscript.c;h=92bc46481b3bf993992916e32db9bc4785b2aa4c;hb=b4a0f3d74b04074eae21e88fbf5b8f2ddc150f86;hp=5a021dff5a2297b44978572f975e5909ad0748fb;hpb=62ea2821e389332d13cc05eb1ac6e77a7787f2db;p=odhcp6c.git diff --git a/src/script.c b/src/script.c index 5a021df..92bc464 100644 --- a/src/script.c +++ b/src/script.c @@ -1,5 +1,5 @@ /** - * Copyright (C) 2012-2013 Steven Barth + * Copyright (C) 2012-2014 Steven Barth * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License v2 as published by @@ -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 && 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) { // priority and router are abused for prefix exclusion