mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
ripd: Use route_node_match instead of route_node_match_ipv4
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
04361b3059
commit
735809756f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue