Skip to content

Commit

Permalink
lib: fix proto_redistnum() oversight from FRRouting#257
Browse files Browse the repository at this point in the history
proto_redistnum() now accepts full protocol strings and not partial
names per FRRouting#10

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
  • Loading branch information
qlyoung committed Apr 2, 2017
1 parent 2b5c7fa commit f257ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ proto_redistnum(int afi, const char *s)
return ZEBRA_ROUTE_VNC;
else if (strmatch (s, "vnc-direct"))
return ZEBRA_ROUTE_VNC_DIRECT;
else if (strncmp (s, "n", 1) == 0)
else if (strmatch (s, "nhrp"))
return ZEBRA_ROUTE_NHRP;
}
if (afi == AFI_IP6)
Expand All @@ -1084,7 +1084,7 @@ proto_redistnum(int afi, const char *s)
return ZEBRA_ROUTE_VNC;
else if (strmatch (s, "vnc-direct"))
return ZEBRA_ROUTE_VNC_DIRECT;
else if (strncmp (s, "n", 1) == 0)
else if (strmatch (s, "nhrp"))
return ZEBRA_ROUTE_NHRP;
}
return -1;
Expand Down

0 comments on commit f257ff2

Please sign in to comment.