Skip to content

Commit

Permalink
ripd: Use route_node_match instead of route_node_match_ipv4
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Sep 26, 2024
1 parent da854d8 commit ab24d3e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ripd/ripd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab24d3e

Please sign in to comment.