summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/nhrp_route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c
index bf7ba5f65..060e60314 100644
--- a/nhrpd/nhrp_route.c
+++ b/nhrpd/nhrp_route.c
@@ -108,11 +108,10 @@ void nhrp_route_update_nhrp(const struct prefix *p, struct interface *ifp)
void nhrp_route_announce(int add, enum nhrp_cache_type type,
const struct prefix *p, struct interface *ifp,
- const union sockunion *nexthop, uint32_t mtu)
+ const union sockunion *nexthop_ref, uint32_t mtu)
{
struct zapi_route api;
struct zapi_nexthop *api_nh;
- union sockunion *nexthop_ref = (union sockunion *)nexthop;
if (zclient->sock < 0)
return;
@@ -125,9 +124,10 @@ void nhrp_route_announce(int add, enum nhrp_cache_type type,
switch (type) {
case NHRP_CACHE_NEGATIVE:
+ /* Fill in a blackhole nexthop */
zapi_route_set_blackhole(&api, BLACKHOLE_REJECT);
ifp = NULL;
- nexthop = NULL;
+ nexthop_ref = NULL;
break;
case NHRP_CACHE_DYNAMIC:
case NHRP_CACHE_NHS: