]> git.ipfire.org Git - thirdparty/bird.git/blob - lib/ip.c
25b4d1033de167cc01d929ed519db5b4a380db8f
[thirdparty/bird.git] / lib / ip.c
1 /*
2 * BIRD Library -- IP address routines common for IPv4 and IPv6
3 *
4 * (c) 1998--1999 Martin Mares <mj@ucw.cz>
5 *
6 * Can be freely distributed and used under the terms of the GNU GPL.
7 */
8
9 #include "nest/bird.h"
10 #include "lib/ip.h"
11
12 char *
13 ip_scope_text(unsigned scope)
14 {
15 static char *scope_table[] = { "host", "link", "site", "org", "univ" };
16
17 if (scope > SCOPE_UNIVERSE)
18 return "?";
19 else
20 return scope_table[scope];
21 }