Skip to content

Commit

Permalink
Update isis_sr.c
Browse files Browse the repository at this point in the history
update1


Signed-off-by: zhou-run <zhou.run@h3c.com>
  • Loading branch information
zhou-run authored Sep 18, 2024
1 parent 01a3015 commit 8ff5bf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isisd/isis_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ static bool sr_adj_same_subnet_ipv4(struct in_addr ipv4, struct isis_circuit *ci

for (ALL_LIST_ELEMENTS_RO(circuit->ip_addrs, node, ipv4_circuit)) {
ipv4_adj->prefix = ipv4;
ipv4_adj->prefixlen = ipv4_circuit->prefixlen;
if (!prefix_cmp((struct prefix *)ipv4_adj,
(struct prefix *)ipv4_circuit)) {
is_same = true;
Expand All @@ -663,6 +664,7 @@ static bool sr_adj_same_subnet_ipv6(struct in6_addr *ipv6, struct isis_circuit *

for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_link, node, ipv6_circuit)) {
IPV6_ADDR_COPY(&ipv6_adj->prefix, ipv6);
ipv6_adj->prefixlen = ipv6_circuit->prefixlen;
if (!prefix_cmp((struct prefix *)ipv6_adj,
(struct prefix *)ipv6_circuit)) {
is_same = true;
Expand All @@ -675,6 +677,7 @@ static bool sr_adj_same_subnet_ipv6(struct in6_addr *ipv6, struct isis_circuit *

for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_non_link, node, ipv6_circuit)) {
IPV6_ADDR_COPY(&ipv6_adj->prefix, ipv6);
ipv6_adj->prefixlen = ipv6_circuit->prefixlen;
if (!prefix_cmp((struct prefix *)ipv6_adj,
(struct prefix *)ipv6_circuit)) {
is_same = true;
Expand Down

0 comments on commit 8ff5bf7

Please sign in to comment.