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:
4
lib/ip.c
4
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];
|
||||
|
Reference in New Issue
Block a user