summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrpd.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-27 22:37:25 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2021-10-19 14:58:51 +0200
commit811de44f34345a9b79a1b79fe63452d354c40f6e (patch)
tree391b88be9dffdff7b8a23801ef78ca7dfb4f00b5 /nhrpd/nhrpd.h
parentnhrpd: convert mcast list to DLIST (diff)
downloadfrr-811de44f34345a9b79a1b79fe63452d354c40f6e.tar.xz
frr-811de44f34345a9b79a1b79fe63452d354c40f6e.zip
nhrpd: convert reg 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 2eab3614d..c73f51d40 100644
--- a/nhrpd/nhrpd.h
+++ b/nhrpd/nhrpd.h
@@ -270,6 +270,7 @@ struct nhrp_shortcut {
PREDECL_DLIST(nhrp_nhslist);
PREDECL_DLIST(nhrp_mcastlist);
+PREDECL_DLIST(nhrp_reglist);
struct nhrp_nhs {
struct interface *ifp;
@@ -282,7 +283,7 @@ struct nhrp_nhs {
struct thread *t_resolve;
struct resolver_query dns_resolve;
- struct list_head reglist_head;
+ struct nhrp_reglist_head reglist_head;
};
DECLARE_DLIST(nhrp_nhslist, struct nhrp_nhs, nhslist_entry);
@@ -297,7 +298,7 @@ struct nhrp_multicast {
DECLARE_DLIST(nhrp_mcastlist, struct nhrp_multicast, mcastlist_entry);
struct nhrp_registration {
- struct list_head reglist_entry;
+ struct nhrp_reglist_item reglist_entry;
struct thread *t_register;
struct nhrp_nhs *nhs;
struct nhrp_reqid reqid;
@@ -308,6 +309,8 @@ struct nhrp_registration {
struct notifier_block peer_notifier;
};
+DECLARE_DLIST(nhrp_reglist, struct nhrp_registration, reglist_entry);
+
#define NHRP_IFF_SHORTCUT 0x0001
#define NHRP_IFF_REDIRECT 0x0002
#define NHRP_IFF_REG_NO_UNIQUE 0x0100