diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-09-30 08:20:31 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-09-30 08:20:45 +0300 |
commit | ae9537903c496dc50693c59b7b0751aee38ed012 (patch) | |
tree | b1eddd7d5178eac802cb4018a0d75bd899133457 /lib | |
parent | 55bccfd7198195aef8f968691b53ec867cbe3989 (diff) | |
download | quagga-old-nhrp.tar.bz2 quagga-old-nhrp.tar.xz |
add nhrpd skeletonold-nhrp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/log.c | 5 | ||||
-rw-r--r-- | lib/log.h | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -52,6 +52,7 @@ const char *zlog_proto_names[] = "OSPF6", "ISIS", "MASC", + "NHRP", NULL, }; @@ -978,6 +979,8 @@ proto_redistnum(int afi, const char *s) return ZEBRA_ROUTE_BGP; else if (strncmp (s, "ba", 2) == 0) return ZEBRA_ROUTE_BABEL; + else if (strncmp (s, "n", 1) == 0) + return ZEBRA_ROUTE_NHRP; } if (afi == AFI_IP6) { @@ -997,6 +1000,8 @@ proto_redistnum(int afi, const char *s) return ZEBRA_ROUTE_BGP; else if (strncmp (s, "ba", 2) == 0) return ZEBRA_ROUTE_BABEL; + else if (strncmp (s, "n", 1) == 0) + return ZEBRA_ROUTE_NHRP; } return -1; } @@ -53,7 +53,8 @@ typedef enum ZLOG_BABEL, ZLOG_OSPF6, ZLOG_ISIS, - ZLOG_MASC + ZLOG_MASC, + ZLOG_NHRP } zlog_proto_t; /* If maxlvl is set to ZLOG_DISABLED, then no messages will be sent |