summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_hello.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2025-03-23 21:16:56 -0400
committerDonald Sharp <sharpd@nvidia.com>2025-03-24 11:36:13 -0400
commitcb34559d7fbd9b333ed26bfb55ae61bf888b46de (patch)
tree1b67818d85f36ad6b023d825d268d92785b05335 /eigrpd/eigrp_hello.c
parent8249c046d71aa28784ec4590a985ec97862fd8a3 (diff)
eigrpd: Convert the eiflist to a typesafe hash
The eigrp->eiflist is a linked list and should just be a hash instead. The full conversion to a hash like functionality is goingto wait until the connected eigrp data structure is created. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'eigrpd/eigrp_hello.c')
-rw-r--r--eigrpd/eigrp_hello.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c
index bd2b8ccbbd..fe80651b9b 100644
--- a/eigrpd/eigrp_hello.c
+++ b/eigrpd/eigrp_hello.c
@@ -496,7 +496,6 @@ static uint16_t eigrp_sequence_encode(struct eigrp *eigrp, struct stream *s)
{
uint16_t length = EIGRP_TLV_SEQ_BASE_LEN;
struct eigrp_interface *ei;
- struct listnode *node;
struct eigrp_neighbor *nbr;
size_t backup_end, size_end;
int found;
@@ -509,7 +508,7 @@ static uint16_t eigrp_sequence_encode(struct eigrp *eigrp, struct stream *s)
stream_putc(s, IPV4_MAX_BYTELEN);
found = 0;
- for (ALL_LIST_ELEMENTS_RO(eigrp->eiflist, node, ei)) {
+ frr_each (eigrp_interface_hash, &eigrp->eifs, ei) {
frr_each (eigrp_nbr_hash, &ei->nbr_hash_head, nbr) {
if (nbr->multicast_queue->count > 0) {
length += (uint16_t)stream_put_ipv4(