From bf6d91dc4edf3d08f0de41f71503159b1713fc9a Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 24 Sep 2011 11:06:42 +0200 Subject: Use undefined scope for undefined IPv6 addresses. --- lib/ip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ip.c') diff --git a/lib/ip.c b/lib/ip.c index 791a601..aa61553 100644 --- a/lib/ip.c +++ b/lib/ip.c @@ -27,9 +27,9 @@ char * ip_scope_text(unsigned scope) { - static char *scope_table[] = { "host", "link", "site", "org", "univ" }; + static char *scope_table[] = { "host", "link", "site", "org", "univ", "undef" }; - if (scope > SCOPE_UNIVERSE) + if (scope > SCOPE_UNDEFINED) return "?"; else return scope_table[scope]; -- cgit v1.2.3