-/* $OpenBSD: ospfd.c,v 1.114 2020/09/16 20:50:10 remi Exp $ */
+/* $OpenBSD: ospfd.c,v 1.115 2021/01/19 09:37:53 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
int pipe_parent2rde[2];
int pipe_ospfe2rde[2];
+enum ospfd_process ospfd_process;
struct ospfd_conf *ospfd_conf = NULL;
-struct imsgev *iev_ospfe;
-struct imsgev *iev_rde;
+static struct imsgev *iev_ospfe;
+static struct imsgev *iev_rde;
char *conffile;
pid_t ospfe_pid = 0;
-/* $OpenBSD: ospfe.c,v 1.109 2021/01/19 09:33:38 claudio Exp $ */
+/* $OpenBSD: ospfe.c,v 1.110 2021/01/19 09:37:53 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
void orig_rtr_lsa_all(struct area *);
struct iface *find_vlink(struct abr_rtr *);
-struct ospfd_conf *oeconf = NULL, *nconf;
-struct imsgev *iev_main;
-struct imsgev *iev_rde;
+struct ospfd_conf *oeconf = NULL, *noeconf;
+static struct imsgev *iev_main;
+static struct imsgev *iev_rde;
int oe_nofib;
/* ARGSUSED */
}
break;
case IMSG_RECONF_CONF:
- if ((nconf = malloc(sizeof(struct ospfd_conf))) ==
+ if ((noeconf = malloc(sizeof(struct ospfd_conf))) ==
NULL)
fatal(NULL);
- memcpy(nconf, imsg.data, sizeof(struct ospfd_conf));
+ memcpy(noeconf, imsg.data, sizeof(struct ospfd_conf));
- LIST_INIT(&nconf->area_list);
- LIST_INIT(&nconf->cand_list);
+ LIST_INIT(&noeconf->area_list);
+ LIST_INIT(&noeconf->cand_list);
break;
case IMSG_RECONF_AREA:
if ((narea = area_new()) == NULL)
RB_INIT(&narea->lsa_tree);
SIMPLEQ_INIT(&narea->redist_list);
- LIST_INSERT_HEAD(&nconf->area_list, narea, entry);
+ LIST_INSERT_HEAD(&noeconf->area_list, narea, entry);
break;
case IMSG_RECONF_IFACE:
if ((niface = malloc(sizeof(struct iface))) == NULL)
break;
case IMSG_RECONF_END:
if ((oeconf->flags & OSPFD_FLAG_STUB_ROUTER) !=
- (nconf->flags & OSPFD_FLAG_STUB_ROUTER))
+ (noeconf->flags & OSPFD_FLAG_STUB_ROUTER))
stub_changed = 1;
else
stub_changed = 0;
- merge_config(oeconf, nconf);
- nconf = NULL;
+ merge_config(oeconf, noeconf);
+ noeconf = NULL;
if (stub_changed)
orig_rtr_lsa_all(NULL);
break;
-/* $OpenBSD: rde.c,v 1.110 2019/11/19 09:55:55 remi Exp $ */
+/* $OpenBSD: rde.c,v 1.111 2021/01/19 09:37:53 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
struct lsa *orig_sum_lsa(struct rt_node *, struct area *, u_int8_t, int);
struct ospfd_conf *rdeconf = NULL, *nconf = NULL;
-struct imsgev *iev_ospfe;
-struct imsgev *iev_main;
+static struct imsgev *iev_ospfe;
+static struct imsgev *iev_main;
struct rde_nbr *nbrself;
struct lsa_tree asext_tree;