summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-20 13:06:18 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-20 13:06:18 +0100
commite7e3b335bf179441f4482f7219b4862797ed66ca (patch)
treeb636d5cb34f9c2768ca9cd0a0bc86bbe476ef7ef
parent4df42f1a55b39bd4f7657e3b22c3a09a77f25a45 (diff)
Nest: Fix crash in rta_show() for Babel routes
Some new route source values did not have associated string in rta_show(), which might caused crash in some cases.
-rw-r--r--nest/rt-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index edf27d44..3db55202 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -1251,7 +1251,7 @@ void
rta_show(struct cli *c, rta *a, ea_list *eal)
{
static char *src_names[] = { "dummy", "static", "inherit", "device", "static-device", "redirect",
- "RIP", "OSPF", "OSPF-IA", "OSPF-E1", "OSPF-E2", "BGP", "pipe" };
+ "RIP", "OSPF", "OSPF-IA", "OSPF-E1", "OSPF-E2", "BGP", "pipe", "babel" };
static char *cast_names[] = { "unicast", "broadcast", "multicast", "anycast" };
int i;