summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/log.c5
-rw-r--r--lib/log.h3
2 files changed, 7 insertions, 1 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;
}
diff --git a/lib/log.h b/lib/log.h
index f3b43ad1..526b91bd 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -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