summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/log.c b/lib/log.c
index 04f8fab6..22a6ec02 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -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;
}