summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-10-20 12:16:42 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-10-20 12:16:42 +0000
commitdd794eba4435099ac0c0f6a7af355cedbe192fac (patch)
tree5d21f2bfcdf35efa265a128dd5793a6cbea582a9 /usr.sbin
parentef132023491328e4d8a740954b457c4072b67afa (diff)
Since on shutdown fib_sync is forced to 1 to remove the multicast route
it needs to be set to 0 afterwards again, because the FIB was decoupled right before and now no "route vanished before delete" messages are printed on shutdown.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpd/kroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c
index 9e64e75ac58..800d4b5bdae 100644
--- a/usr.sbin/ldpd/kroute.c
+++ b/usr.sbin/ldpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.23 2010/10/15 13:18:45 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.24 2010/10/20 12:16:41 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -260,6 +260,7 @@ kr_shutdown(void)
kr_state.fib_sync = 1; /* force removal of mulitcast route */
(void)send_rtmsg(kr_state.fd, RTM_DELETE, &kr_all_routers,
AF_INET);
+ kr_state.fib_sync = 0; /* back to decoupled state */
}
kroute_clear();