ripd: Use route_node_match instead of route_node_match_ipv4

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-09-24 13:59:48 -04:00
parent 04361b3059
commit 735809756f

View file

@ -1263,9 +1263,13 @@ static void rip_response_process(struct rip_packet *packet, int size,
rip->vrf->vrf_id)) {
struct route_node *rn;
struct rip_info *rinfo;
struct prefix p = { 0 };
rn = route_node_match_ipv4(rip->table,
&rte->nexthop);
p.family = AF_INET;
p.prefixlen = IPV4_MAX_BITLEN;
p.u.prefix4 = rte->nexthop;
rn = route_node_match(rip->table, &p);
if (rn) {
rinfo = rn->info;