diff options
| author | Mark Stapp <mjs@labn.net> | 2023-06-28 08:10:40 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@labn.net> | 2023-07-10 16:43:53 -0400 | 
| commit | 281e7685c1dc4c242d780323be66c766a531c7bd (patch) | |
| tree | d2b16f803bf1871861601179b39e61314cec6bd9 /nhrpd/nhrp_route.c | |
| parent | b35dbae2c20f9708ba092e27c1d7f5ddd873be30 (diff) | |
nhrpd: clean up locals in route zapi api
Clean up use of a nexthop pointer - seemed inconsistent.
Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'nhrpd/nhrp_route.c')
| -rw-r--r-- | nhrpd/nhrp_route.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c index bf7ba5f650..060e60314d 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:  | 
