summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2015-12-03 16:12:17 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2015-12-03 16:12:17 +0000
commit80134231ac66621ae82938d5742ed26e20e08c9d (patch)
tree78ad6b1328b4c1989227ee71c3a4672547c45240
parentb1087ec06ed32b52e5de46edbdf089115593310f (diff)
quick removal of all host-related entries in the related relayd anchor
if the host fails the SLA check. patch from Brian S. Vangsgaard. ok reyk@
-rw-r--r--usr.sbin/relayd/pfe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/relayd/pfe.c b/usr.sbin/relayd/pfe.c
index 8f2c11943bc..36898d010a6 100644
--- a/usr.sbin/relayd/pfe.c
+++ b/usr.sbin/relayd/pfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe.c,v 1.82 2015/12/02 13:41:27 reyk Exp $ */
+/* $OpenBSD: pfe.c,v 1.83 2015/12/03 16:12:16 benno Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -156,6 +156,8 @@ pfe_dispatch_hce(int fd, struct privsep_proc *p, struct imsg *imsg)
table->conf.flags |= F_CHANGED;
host->flags |= F_DEL;
host->flags &= ~(F_ADD);
+ host->up = st.up;
+ pfe_sync();
}
host->up = st.up;