diff options
Diffstat (limited to 'lib/zebra.h')
-rw-r--r-- | lib/zebra.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index 03af70d3..88f16252 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -391,6 +391,14 @@ struct in_pktinfo #define ZEBRA_ROUTE_HSLS 10 #define ZEBRA_ROUTE_MAX 11 +/* Note: whenever a new route type is added (or the numbering is changed), + the route_types[] table in lib/log.c must be updated! */ + +/* Map a route type to a string. For example, ZEBRA_ROUTE_RIPNG -> "ripng". */ +extern const char *zebra_route_string(u_int route_type); +/* Map a route type to a char. For example, ZEBRA_ROUTE_RIPNG -> 'R'. */ +extern char zebra_route_char(u_int route_type); + /* Zebra's family types. */ #define ZEBRA_FAMILY_IPV4 1 #define ZEBRA_FAMILY_IPV6 2 |