diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-11 18:18:56 +0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:52 +0100 |
commit | f8a246d6df0556fb897e1785d1c2ea81caf8956d (patch) | |
tree | e78438d35439685d7427dd5bfbc404f5c32f4b5c /lib/log.c | |
parent | 87c271c69330cfcea7955503eba3ed15a15cb634 (diff) |
lib: update proto_redistnum() for Babel
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -933,8 +933,10 @@ proto_redistnum(int afi, const char *s) return ZEBRA_ROUTE_OSPF; else if (strncmp (s, "i", 1) == 0) return ZEBRA_ROUTE_ISIS; - else if (strncmp (s, "b", 1) == 0) + else if (strncmp (s, "bg", 2) == 0) return ZEBRA_ROUTE_BGP; + else if (strncmp (s, "ba", 2) == 0) + return ZEBRA_ROUTE_BABEL; } if (afi == AFI_IP6) { @@ -950,8 +952,10 @@ proto_redistnum(int afi, const char *s) return ZEBRA_ROUTE_OSPF6; else if (strncmp (s, "i", 1) == 0) return ZEBRA_ROUTE_ISIS; - else if (strncmp (s, "b", 1) == 0) + else if (strncmp (s, "bg", 2) == 0) return ZEBRA_ROUTE_BGP; + else if (strncmp (s, "ba", 2) == 0) + return ZEBRA_ROUTE_BABEL; } return -1; } |