diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-03-23 21:16:56 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2025-03-24 11:36:13 -0400 | 
| commit | cb34559d7fbd9b333ed26bfb55ae61bf888b46de (patch) | |
| tree | 1b67818d85f36ad6b023d825d268d92785b05335 /eigrpd/eigrp_structs.h | |
| parent | 8249c046d71aa28784ec4590a985ec97862fd8a3 (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_structs.h')
| -rw-r--r-- | eigrpd/eigrp_structs.h | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/eigrpd/eigrp_structs.h b/eigrpd/eigrp_structs.h index 4acb8b10b5..c277dcbf5e 100644 --- a/eigrpd/eigrp_structs.h +++ b/eigrpd/eigrp_structs.h @@ -43,6 +43,8 @@ struct eigrp_extdata {  	uint8_t flags;  }; +PREDECL_HASH(eigrp_interface_hash); +  struct eigrp {  	vrf_id_t vrf_id; @@ -59,7 +61,7 @@ struct eigrp {  	struct in_addr router_id;	/* Configured automatically. */  	struct in_addr router_id_static; /* Configured manually. */ -	struct list *eiflist;		  /* eigrp interfaces */ +	struct eigrp_interface_hash_head eifs;  	uint8_t passive_interface_default; /* passive-interface default */  	int fd; @@ -137,6 +139,8 @@ PREDECL_HASH(eigrp_nbr_hash);  /*EIGRP interface structure*/  struct eigrp_interface { +	struct eigrp_interface_hash_item eif_item; +  	struct eigrp_if_params params;  	/*multicast group refcnts */  | 
