-/* $OpenBSD: control.c,v 1.30 2020/06/22 15:09:34 mestre Exp $ */
+/* $OpenBSD: control.c,v 1.31 2021/01/19 15:14:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#include "log.h"
#include "control.h"
+TAILQ_HEAD(ctl_conns, ctl_conn) ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
+
#define CONTROL_BACKLOG 5
static void control_accept(int, short, void *);
static void control_close(int);
static void control_dispatch_imsg(int, short, void *);
-struct ctl_conns ctl_conns;
-
static int control_fd;
int
-/* $OpenBSD: control.h,v 1.10 2020/06/22 15:09:34 mestre Exp $ */
+/* $OpenBSD: control.h,v 1.11 2021/01/19 15:14:35 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
TAILQ_ENTRY(ctl_conn) entry;
struct imsgev iev;
};
-TAILQ_HEAD(ctl_conns, ctl_conn);
-
-extern struct ctl_conns ctl_conns;
int control_init(char *);
int control_listen(void);
-/* $OpenBSD: ldpe.c,v 1.77 2020/06/22 15:09:34 mestre Exp $ */
+/* $OpenBSD: ldpe.c,v 1.78 2021/01/19 15:14:35 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
global.ipv6.ldp_session_socket = -1;
/* listen on ldpd control socket */
- TAILQ_INIT(&ctl_conns);
control_listen();
if ((pkt_ptr = calloc(1, IBUF_READ_SIZE)) == NULL)
-/* $OpenBSD: ldpe.h,v 1.77 2019/12/12 00:10:29 yasuoka Exp $ */
+/* $OpenBSD: ldpe.h,v 1.78 2021/01/19 15:14:35 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
struct map map;
};
+struct ctl_conn;
+
struct ldpd_sysdep {
uint8_t no_pfkey;
uint8_t no_md5sig;
void ldpe_reset_ds_nbrs(void);
void ldpe_remove_dynamic_tnbrs(int);
void ldpe_stop_init_backoff(int);
-struct ctl_conn;
void ldpe_iface_ctl(struct ctl_conn *, unsigned int);
void ldpe_adj_ctl(struct ctl_conn *);
void ldpe_nbr_ctl(struct ctl_conn *);