-/* $OpenBSD: rde.c,v 1.22 2018/11/04 07:52:55 remi Exp $ */
+/* $OpenBSD: rde.c,v 1.23 2021/01/19 10:18:56 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
fatal("chdir(\"/\")");
setproctitle("route decision engine");
- ripd_process = PROC_RDE_ENGINE;
- log_procname = log_procnames[ripd_process];
+ log_procname = "rde";
if (setgroups(1, &pw->pw_gid) ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
-/* $OpenBSD: ripd.c,v 1.33 2019/08/08 16:50:15 mestre Exp $ */
+/* $OpenBSD: ripd.c,v 1.34 2021/01/19 10:18:56 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
size_t len;
conffile = CONF_FILE;
- ripd_process = PROC_MAIN;
- log_procname = log_procnames[ripd_process];
+ log_procname = "parent";
sockname = RIPD_SOCKET;
log_init(1); /* log to stderr until daemonized */
-/* $OpenBSD: ripd.h,v 1.26 2018/12/31 20:34:16 remi Exp $ */
+/* $OpenBSD: ripd.h,v 1.27 2021/01/19 10:18:56 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
IMSG_DEMOTE
};
-static const char * const log_procnames[] = {
- "parent",
- "ripe",
- "rde"
-};
-
struct imsgev {
struct imsgbuf ibuf;
void (*handler)(int, short, void *);
struct rip_route *rr;
};
-enum {
- PROC_MAIN,
- PROC_RIP_ENGINE,
- PROC_RDE_ENGINE
-} ripd_process;
-
#define REDIST_CONNECTED 0x01
#define REDIST_STATIC 0x02
#define REDIST_LABEL 0x04
-/* $OpenBSD: ripe.c,v 1.28 2021/01/19 10:09:59 claudio Exp $ */
+/* $OpenBSD: ripe.c,v 1.29 2021/01/19 10:18:56 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
fatal("chdir(\"/\")");
setproctitle("rip engine");
- ripd_process = PROC_RIP_ENGINE;
- log_procname = log_procnames[ripd_process];
+ log_procname = "ripe";
if (setgroups(1, &pw->pw_gid) ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||