-/* $OpenBSD: lsreq.c,v 1.11 2019/12/28 09:25:24 denis Exp $ */
+/* $OpenBSD: lsreq.c,v 1.12 2021/01/19 09:53:11 claudio Exp $ */
/*
* Copyright (c) 2004, 2005, 2007 Esben Norby <norby@openbsd.org>
#include "log.h"
#include "ospfe.h"
-extern struct imsgev *iev_rde;
-
/* link state request packet handling */
int
send_ls_req(struct nbr *nbr)
case NBR_STA_XCHNG:
case NBR_STA_LOAD:
case NBR_STA_FULL:
- imsg_compose_event(iev_rde, IMSG_LS_REQ, nbr->peerid,
- 0, -1, buf, len);
+ ospfe_imsg_compose_rde(IMSG_LS_REQ, nbr->peerid, 0, buf, len);
break;
default:
fatalx("recv_ls_req: unknown neighbor state");
-/* $OpenBSD: lsupdate.c,v 1.19 2021/01/12 09:51:10 claudio Exp $ */
+/* $OpenBSD: lsupdate.c,v 1.20 2021/01/19 09:53:11 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
#include "ospfe.h"
#include "rde.h"
-extern struct imsgev *iev_rde;
-
struct ibuf *prepare_ls_update(struct iface *, int);
int add_ls_update(struct ibuf *, struct iface *, void *, u_int16_t,
u_int16_t);
"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);
}