1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Use undefined scope for undefined IPv6 addresses.

This commit is contained in:
Ondrej Zajicek
2011-09-24 11:06:42 +02:00
parent 4116db182d
commit bf6d91dc4e
4 changed files with 6 additions and 4 deletions

View File

@@ -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];