-/* $OpenBSD: lde.c,v 1.74 2019/01/23 02:02:04 dlg Exp $ */
+/* $OpenBSD: lde.c,v 1.75 2021/01/19 15:23:25 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
setproctitle("label decision engine");
ldpd_process = PROC_LDE_ENGINE;
- log_procname = log_procnames[PROC_LDE_ENGINE];
+ log_procname = "lde";
if ((pw = getpwnam(LDPD_USER)) == NULL)
fatal("getpwnam");
-/* $OpenBSD: ldpd.c,v 1.65 2019/08/10 01:30:53 mestre Exp $ */
+/* $OpenBSD: ldpd.c,v 1.66 2021/01/19 15:23:25 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
struct l2vpn *);
static void merge_auths(struct ldpd_conf *, struct ldpd_conf *);
+enum ldpd_process ldpd_process;
struct ldpd_global global;
struct ldpd_conf *ldpd_conf;
conffile = CONF_FILE;
ldpd_process = PROC_MAIN;
- log_procname = log_procnames[ldpd_process];
+ log_procname = "parent";
sockname = LDPD_SOCKET;
log_init(1); /* log to stderr until daemonized */
-/* $OpenBSD: ldpd.h,v 1.90 2019/01/23 08:43:45 dlg Exp $ */
+/* $OpenBSD: ldpd.h,v 1.91 2021/01/19 15:23:25 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
PROC_MAIN,
PROC_LDP_ENGINE,
PROC_LDE_ENGINE
-} ldpd_process;
-
-static const char * const log_procnames[] = {
- "parent",
- "ldpe",
- "lde"
};
+extern enum ldpd_process ldpd_process;
enum socket_type {
LDP_SOCKET_DISC,
-/* $OpenBSD: ldpe.c,v 1.78 2021/01/19 15:14:35 claudio Exp $ */
+/* $OpenBSD: ldpe.c,v 1.79 2021/01/19 15:23:25 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
setproctitle("ldp engine");
ldpd_process = PROC_LDP_ENGINE;
- log_procname = log_procnames[ldpd_process];
+ log_procname = "ldpe";
/* create ldpd control socket outside chroot */
global.csock = sockname;