diff options
author | 2015-12-03 16:12:16 +0000 | |
---|---|---|
committer | 2015-12-03 16:12:16 +0000 | |
commit | 2381fb0ae8f87bcc111395c77e4ccf09ae8ed5fe (patch) | |
tree | 7006e3f991fc8d35db645380003cae2c97f7ffc7 | |
parent | Add support for an optional vm.conf(5) file in vmd. This will replace (diff) | |
download | wireguard-openbsd-2381fb0ae8f87bcc111395c77e4ccf09ae8ed5fe.tar.xz wireguard-openbsd-2381fb0ae8f87bcc111395c77e4ccf09ae8ed5fe.zip |
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.c | 4 |
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; |