mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
pim6d: Handling last_lookup in pim_nexthop for IPV6
Signed-off-by: sarita patra <saritap@vmware.com>
This commit is contained in:
parent
ee95029ac4
commit
113f29b90d
@ -1030,8 +1030,7 @@ int pim_ecmp_nexthop_lookup(struct pim_instance *pim,
|
||||
nexthop_tab[i].protocol_distance;
|
||||
nexthop->mrib_route_metric =
|
||||
nexthop_tab[i].route_metric;
|
||||
memcpy(&(nexthop->last_lookup), &(src_addr),
|
||||
sizeof(pim_addr));
|
||||
nexthop->last_lookup = src_addr;
|
||||
nexthop->last_lookup_time = pim_time_monotonic_usec();
|
||||
nexthop->nbr = nbr;
|
||||
found = 1;
|
||||
|
@ -67,7 +67,7 @@ bool pim_nexthop_lookup(struct pim_instance *pim, struct pim_nexthop *nexthop,
|
||||
* 255.255.255.255 address, since
|
||||
* it will never work
|
||||
*/
|
||||
if (addr.s_addr == INADDR_NONE)
|
||||
if (pim_addr_is_none(addr))
|
||||
return false;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user