ibuf should be reserved for struct ibuf * values.
OK tb@
-/* $OpenBSD: bgpd.c,v 1.259 2023/08/16 08:26:35 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.260 2023/11/07 11:18:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
}
int
-dispatch_imsg(struct imsgbuf *ibuf, int idx, struct bgpd_config *conf)
+dispatch_imsg(struct imsgbuf *imsgbuf, int idx, struct bgpd_config *conf)
{
struct imsg imsg;
struct peer *p;
int rv, verbose;
rv = 0;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
return (-1);
if (n == 0)
-/* $OpenBSD: control.c,v 1.113 2023/09/28 07:01:26 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.114 2023/11/07 11:18:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
/* This should go into libutil, from smtpd/mproc.c */
ssize_t
-imsg_read_nofd(struct imsgbuf *ibuf)
+imsg_read_nofd(struct imsgbuf *imsgbuf)
{
ssize_t n;
char *buf;
size_t len;
- buf = ibuf->r.buf + ibuf->r.wpos;
- len = sizeof(ibuf->r.buf) - ibuf->r.wpos;
+ buf = imsgbuf->r.buf + imsgbuf->r.wpos;
+ len = sizeof(imsgbuf->r.buf) - imsgbuf->r.wpos;
- while ((n = recv(ibuf->fd, buf, len, 0)) == -1) {
+ while ((n = recv(imsgbuf->fd, buf, len, 0)) == -1) {
if (errno != EINTR)
return (n);
}
- ibuf->r.wpos += n;
+ imsgbuf->r.wpos += n;
return (n);
}
-/* $OpenBSD: rde.c,v 1.611 2023/10/16 10:25:45 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.612 2023/11/07 11:18:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
struct filter_set_head parent_set = TAILQ_HEAD_INITIALIZER(parent_set);
void
-rde_dispatch_imsg_session(struct imsgbuf *ibuf)
+rde_dispatch_imsg_session(struct imsgbuf *imsgbuf)
{
static struct flowspec *curflow;
struct imsg imsg;
uint16_t len;
uint8_t aid;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("rde_dispatch_imsg_session: imsg_get error");
if (n == 0)
break;
}
void
-rde_dispatch_imsg_parent(struct imsgbuf *ibuf)
+rde_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
{
static struct rde_prefixset *last_prefixset;
static struct as_set *last_as_set;
int n, fd, rv;
uint16_t rid;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("rde_dispatch_imsg_parent: imsg_get error");
if (n == 0)
break;
}
void
-rde_dispatch_imsg_rtr(struct imsgbuf *ibuf)
+rde_dispatch_imsg_rtr(struct imsgbuf *imsgbuf)
{
static struct aspa_set *aspa;
struct imsg imsg;
struct aspa_prep ap;
int n;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("rde_dispatch_imsg_parent: imsg_get error");
if (n == 0)
break;
-/* $OpenBSD: rtr.c,v 1.16 2023/08/16 08:26:35 claudio Exp $ */
+/* $OpenBSD: rtr.c,v 1.17 2023/11/07 11:18:35 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
}
static void
-rtr_dispatch_imsg_parent(struct imsgbuf *ibuf)
+rtr_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
{
static struct aspa_set *aspa;
struct imsg imsg;
struct rtr_session *rs;
int n, fd;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("%s: imsg_get error", __func__);
if (n == 0)
break;
}
static void
-rtr_dispatch_imsg_rde(struct imsgbuf *ibuf)
+rtr_dispatch_imsg_rde(struct imsgbuf *imsgbuf)
{
struct imsg imsg;
int n;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("%s: imsg_get error", __func__);
if (n == 0)
break;
-/* $OpenBSD: session.c,v 1.454 2023/11/04 11:17:51 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.455 2023/11/07 11:18:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
}
void
-session_dispatch_imsg(struct imsgbuf *ibuf, int idx, u_int *listener_cnt)
+session_dispatch_imsg(struct imsgbuf *imsgbuf, int idx, u_int *listener_cnt)
{
struct imsg imsg;
struct mrt xmrt;
uint16_t t;
uint8_t aid, errcode, subcode;
- while (ibuf) {
- if ((n = imsg_get(ibuf, &imsg)) == -1)
+ while (imsgbuf) {
+ if ((n = imsg_get(imsgbuf, &imsg)) == -1)
fatal("session_dispatch_imsg: imsg_get error");
if (n == 0)