summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-09-30 08:20:31 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-09-30 08:20:45 +0300
commitae9537903c496dc50693c59b7b0751aee38ed012 (patch)
treeb1eddd7d5178eac802cb4018a0d75bd899133457 /lib
parent55bccfd7198195aef8f968691b53ec867cbe3989 (diff)
downloadquagga-old-nhrp.tar.bz2
quagga-old-nhrp.tar.xz
add nhrpd skeletonold-nhrp
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