summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ext.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-11-20 12:53:09 +0100
committerGitHub <noreply@github.com>2021-11-20 12:53:09 +0100
commit587cf8f170af8597dd68efefe79ef9886e95e0bb (patch)
tree440d5090e21527c7bbfaf038a3c31215f4fb0abe /ospfd/ospf_ext.c
parentMerge pull request #10097 from pguibert6WIND/ipv6_fix_ecom_list (diff)
parentospfd: fix processing of ext prefix in SR (diff)
downloadfrr-587cf8f170af8597dd68efefe79ef9886e95e0bb.tar.xz
frr-587cf8f170af8597dd68efefe79ef9886e95e0bb.zip
Merge pull request #9683 from volta-networks/sr-minor-fixes
ospfd, isisd: minor SR fixes
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r--ospfd/ospf_ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c
index ea1506ea2..0e5a7e29c 100644
--- a/ospfd/ospf_ext.c
+++ b/ospfd/ospf_ext.c
@@ -256,10 +256,10 @@ static uint32_t get_ext_link_instance_value(void)
/* Lookup Extended Prefix/Links by ifp from OspfEXT struct iflist */
static struct ext_itf *lookup_ext_by_ifp(struct interface *ifp)
{
- struct listnode *node, *nnode;
+ struct listnode *node;
struct ext_itf *exti;
- for (ALL_LIST_ELEMENTS(OspfEXT.iflist, node, nnode, exti))
+ for (ALL_LIST_ELEMENTS_RO(OspfEXT.iflist, node, exti))
if (exti->ifp == ifp)
return exti;