Skip to content

Commit

Permalink
Update isis_sr.c
Browse files Browse the repository at this point in the history
Signed-off-by: zhou-run <[email protected]>
  • Loading branch information
zhou-run authored Sep 19, 2024
1 parent b779b44 commit 1a570d4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions isisd/isis_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,8 @@ static bool sr_adj_same_subnet_ipv4(struct in_addr ipv4,

for (ALL_LIST_ELEMENTS_RO(circuit->ip_addrs, node, ipv4_circuit)) {
ipv4_adj.prefixlen = ipv4_circuit->prefixlen;
if (!prefix_cmp(&ipv4_adj, ipv4_circuit)) {
if (!prefix_cmp(&ipv4_adj, ipv4_circuit))
return true;
}
}

return false;
Expand All @@ -657,16 +656,14 @@ static bool sr_adj_same_subnet_ipv6(struct in6_addr *ipv6,

for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_link, node, ipv6_circuit)) {
ipv6_adj.prefixlen = ipv6_circuit->prefixlen;
if (!prefix_cmp(&ipv6_adj, ipv6_circuit)) {
if (!prefix_cmp(&ipv6_adj, ipv6_circuit))
return true;
}
}

for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_non_link, node, ipv6_circuit)) {
ipv6_adj.prefixlen = ipv6_circuit->prefixlen;
if (!prefix_cmp(&ipv6_adj, ipv6_circuit)) {
if (!prefix_cmp(&ipv6_adj, ipv6_circuit))
return true;
}
}

return false;
Expand Down

0 comments on commit 1a570d4

Please sign in to comment.