From cd5d92cf7618b9cc186c62d0a7e9cf667d385a88 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 11 Jan 2007 21:35:16 +0000 Subject: Remove unneeded config stuff when booting up the RDE. This makes the reload handling a bit easier. --- usr.sbin/ospfd/rde.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ospfd/rde.c') diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index bef4c7be307..fd446650f90 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.50 2006/12/21 17:10:11 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.51 2007/01/11 21:35:15 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker @@ -91,8 +91,10 @@ pid_t rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2], int pipe_parent2ospfe[2]) { - struct timeval now; struct event ev_sigint, ev_sigterm; + struct timeval now; + struct area *area; + struct iface *iface; struct passwd *pw; struct redistribute *r; pid_t pid; @@ -162,6 +164,11 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2], cand_list_init(); rt_init(); + /* remove unneded stuff from config */ + LIST_FOREACH(area, &rdeconf->area_list, entry) + LIST_FOREACH(iface, &area->iface_list, entry) + md_list_clr(&iface->auth_md_list); + while ((r = SIMPLEQ_FIRST(&rdeconf->redist_list)) != NULL) { SIMPLEQ_REMOVE_HEAD(&rdeconf->redist_list, entry); free(r); -- cgit v1.2.3