summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/rde.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-05-30 22:06:14 +0000
committerclaudio <claudio@openbsd.org>2006-05-30 22:06:14 +0000
commitbbb232d26a97e2c5141c9abb520f9c313dbe8e1f (patch)
treea53e0b965fff0f7fb0ede14a89fe5a267d4c6c09 /usr.sbin/ospfd/rde.c
parentonly look into the Attic for certain commands (diff)
downloadwireguard-openbsd-bbb232d26a97e2c5141c9abb520f9c313dbe8e1f.tar.xz
wireguard-openbsd-bbb232d26a97e2c5141c9abb520f9c313dbe8e1f.zip
Now that rtlabels are accessable via sysctl we can use route lables to
define which routes should be redistributed via OSPF. So now you can define the export list on a fine graded basis. More to come... OK norby@
Diffstat (limited to 'usr.sbin/ospfd/rde.c')
-rw-r--r--usr.sbin/ospfd/rde.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c
index 584f6e911c7..9ef7fc6e195 100644
--- a/usr.sbin/ospfd/rde.c
+++ b/usr.sbin/ospfd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.45 2006/05/29 16:50:36 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.46 2006/05/30 22:06:14 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -92,6 +92,7 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2],
int pipe_parent2ospfe[2])
{
struct passwd *pw;
+ struct redistribute *r;
struct event ev_sigint, ev_sigterm;
pid_t pid;
@@ -160,6 +161,11 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2],
cand_list_init();
rt_init();
+ while ((r = SIMPLEQ_FIRST(&rdeconf->redist_list)) != NULL) {
+ SIMPLEQ_REMOVE_HEAD(&rdeconf->redist_list, entry);
+ free(r);
+ }
+
event_dispatch();
rde_shutdown();