diff options
author | David Lamparter <equinox@diac24.net> | 2021-03-27 22:20:10 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-10-19 14:55:39 +0200 |
commit | 865bf787fa1213fe62d8747953c1a612b42a3984 (patch) | |
tree | 8545f77a194dfa362921f1ea0bab93b637749117 /nhrpd/nhrp_cache.c | |
parent | doc/developer: add _member and _anywhere (diff) | |
download | frr-865bf787fa1213fe62d8747953c1a612b42a3984.tar.xz frr-865bf787fa1213fe62d8747953c1a612b42a3984.zip |
nhrpd: convert notifier list to DLIST
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/nhrp_cache.c')
-rw-r--r-- | nhrpd/nhrp_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nhrpd/nhrp_cache.c b/nhrpd/nhrp_cache.c index c358baecb..3823464a7 100644 --- a/nhrpd/nhrp_cache.c +++ b/nhrpd/nhrp_cache.c @@ -315,7 +315,7 @@ static void nhrp_cache_peer_notifier(struct notifier_block *n, static void nhrp_cache_reset_new(struct nhrp_cache *c) { THREAD_OFF(c->t_auth); - if (list_hashed(&c->newpeer_notifier.notifier_entry)) + if (notifier_list_anywhere(&c->newpeer_notifier)) nhrp_peer_notify_del(c->new.peer, &c->newpeer_notifier); nhrp_peer_unref(c->new.peer); memset(&c->new, 0, sizeof(c->new)); @@ -574,5 +574,5 @@ void nhrp_cache_notify_add(struct nhrp_cache *c, struct notifier_block *n, void nhrp_cache_notify_del(struct nhrp_cache *c, struct notifier_block *n) { - notifier_del(n); + notifier_del(n, &c->notifier_list); } |