From: Steven Barth Date: Wed, 8 May 2013 12:39:35 +0000 (+0200) Subject: Use key=val pairs for additional prefix params X-Git-Tag: debian/1.1+git20160131-1~152 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f5c828154b51cfee1b8578f253043712ad98e047;p=odhcp6c.git Use key=val pairs for additional prefix params --- diff --git a/src/script.c b/src/script.c index a56d9b4..051718f 100644 --- a/src/script.c +++ b/src/script.c @@ -164,7 +164,7 @@ static void entry_to_env(const char *name, const void *data, size_t len, enum en if (type == ENTRY_PREFIX && e[i].priority) { // priority and router are abused for prefix exclusion - buf[buf_len++] = ','; + buf_len += snprintf(&buf[buf_len], 12, ",excluded="); inet_ntop(AF_INET6, &e[i].router, &buf[buf_len], INET6_ADDRSTRLEN); buf_len += strlen(&buf[buf_len]); buf_len += snprintf(&buf[buf_len], 24, "/%u", e[i].priority);