summaryrefslogtreecommitdiff
path: root/lib/ip.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-09-24 11:06:42 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-09-24 11:06:42 +0200
commitbf6d91dc4edf3d08f0de41f71503159b1713fc9a (patch)
treeaaf769128412c4ad1c56f0f373b88f10e37a8ddf /lib/ip.c
parent4116db182d8d80d26902a8b33f82664bb5770066 (diff)
Use undefined scope for undefined IPv6 addresses.
Diffstat (limited to 'lib/ip.c')
-rw-r--r--lib/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ip.c b/lib/ip.c
index 791a6013..aa61553e 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];