summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/lsupdate.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-01-19 09:25:54 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-01-19 09:25:54 +0000
commitf3b4ef4eb6467ed9096c9201525559fcecf12cc8 (patch)
tree3c5f6d5a3087518225e9dc0f2a7b3a8dcff582dc /usr.sbin/ospfd/lsupdate.c
parentdb15f5d70b4366a92c9886f5c75da378731f25b2 (diff)
Use ospfe_imsg_compose_rde() instead of calling imsg_compose_event() with
a local export of iev_rde. Remove the extern in preperation of -fno-common cleanup.
Diffstat (limited to 'usr.sbin/ospfd/lsupdate.c')
-rw-r--r--usr.sbin/ospfd/lsupdate.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c
index 2446a993f96..b057d1c08fd 100644
--- a/usr.sbin/ospfd/lsupdate.c
+++ b/usr.sbin/ospfd/lsupdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsupdate.c,v 1.48 2020/05/06 14:40:54 claudio Exp $ */
+/* $OpenBSD: lsupdate.c,v 1.49 2021/01/19 09:25:53 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -32,9 +32,6 @@
#include "ospfe.h"
#include "rde.h"
-extern struct ospfd_conf *oeconf;
-extern struct imsgev *iev_rde;
-
struct ibuf *prepare_ls_update(struct iface *);
int add_ls_update(struct ibuf *, struct iface *, void *, u_int16_t,
u_int16_t);
@@ -276,8 +273,8 @@ recv_ls_update(struct nbr *nbr, char *buf, u_int16_t len)
"neighbor ID %s", inet_ntoa(nbr->id));
return;
}
- imsg_compose_event(iev_rde, IMSG_LS_UPD, nbr->peerid, 0,
- -1, buf, ntohs(lsa.len));
+ ospfe_imsg_compose_rde(IMSG_LS_UPD, nbr->peerid, 0,
+ buf, ntohs(lsa.len));
buf += ntohs(lsa.len);
len -= ntohs(lsa.len);
}