From db4db2bbdabf172b11013f268082e37832298c6e Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 29 Sep 2021 23:16:17 +0200 Subject: nhrpd: convert mcast list to DLIST Signed-off-by: David Lamparter --- nhrpd/nhrpd.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nhrpd/nhrpd.h') diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index 7e4a86cd5..2eab3614d 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -269,6 +269,7 @@ struct nhrp_shortcut { }; PREDECL_DLIST(nhrp_nhslist); +PREDECL_DLIST(nhrp_mcastlist); struct nhrp_nhs { struct interface *ifp; @@ -288,11 +289,13 @@ DECLARE_DLIST(nhrp_nhslist, struct nhrp_nhs, nhslist_entry); struct nhrp_multicast { struct interface *ifp; - struct list_head list_entry; + struct nhrp_mcastlist_item mcastlist_entry; afi_t afi; union sockunion nbma_addr; /* IP-address */ }; +DECLARE_DLIST(nhrp_mcastlist, struct nhrp_multicast, mcastlist_entry); + struct nhrp_registration { struct list_head reglist_entry; struct thread *t_register; @@ -340,7 +343,7 @@ struct nhrp_interface { unsigned short mtu; unsigned int holdtime; struct nhrp_nhslist_head nhslist_head; - struct list_head mcastlist_head; + struct nhrp_mcastlist_head mcastlist_head; } afi[AFI_MAX]; }; -- cgit v1.2.3