From 94eb28a5b61036a21bf794b99de64daa96170f1e Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 24 Jan 2014 14:15:12 +0100 Subject: [PATCH] output prefix IAID as prefix class in script Contributed by T-Labs, Deutsche Telekom Innovation Laboratories --- src/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/script.c b/src/script.c index 5a021df..3041fe7 100644 --- a/src/script.c +++ b/src/script.c @@ -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) + 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 -- 2.25.1