mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 01:38:05 +00:00
ospfd: replace iterator by RO version ..
..since it's used for read-only lookups. Signed-off-by: Fredi Raspall <fredi@voltanet.io>
This commit is contained in:
parent
d1db7359ad
commit
152656d8ef
@ -254,10 +254,10 @@ static uint32_t get_ext_link_instance_value(void)
|
|||||||
/* Lookup Extended Prefix/Links by ifp from OspfEXT struct iflist */
|
/* Lookup Extended Prefix/Links by ifp from OspfEXT struct iflist */
|
||||||
static struct ext_itf *lookup_ext_by_ifp(struct interface *ifp)
|
static struct ext_itf *lookup_ext_by_ifp(struct interface *ifp)
|
||||||
{
|
{
|
||||||
struct listnode *node, *nnode;
|
struct listnode *node;
|
||||||
struct ext_itf *exti;
|
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)
|
if (exti->ifp == ifp)
|
||||||
return exti;
|
return exti;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user