summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrpd.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-09-29 23:16:17 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-10-19 14:58:47 +0200
commitdb4db2bbdabf172b11013f268082e37832298c6e (patch)
tree34794c7eab58a717ed2490b312eaa204f06140f5 /nhrpd/nhrpd.h
parentnhrpd: convert nhs list to DLIST (diff)
downloadfrr-db4db2bbdabf172b11013f268082e37832298c6e.tar.xz
frr-db4db2bbdabf172b11013f268082e37832298c6e.zip
nhrpd: convert mcast list to DLIST
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/nhrpd.h')
-rw-r--r--nhrpd/nhrpd.h7
1 files changed, 5 insertions, 2 deletions
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];
};