From: Donald Sharp Date: Tue, 27 Feb 2018 02:44:47 +0000 (-0500) Subject: sharpd: Allow sharp routes to recurse X-Git-Tag: frr-5.0-dev~199^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a3896844153e8f0105dc33e007805650af42185d;p=matthieu%2Ffrr.git sharpd: Allow sharp routes to recurse When passing in a sharp route, allow the nexthop choosen to recurse to find a match. Signed-off-by: Donald Sharp --- diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 3b22db20aa..f02ce4979c 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -169,6 +169,7 @@ void route_add(struct prefix *p, struct nexthop *nh) api.safi = SAFI_UNICAST; memcpy(&api.prefix, p, sizeof(*p)); + SET_FLAG(api.flags, ZEBRA_FLAG_ALLOW_RECURSION); SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api_nh = &api.nexthops[0];