diff options
author | 2009-02-24 05:39:19 +0000 | |
---|---|---|
committer | 2009-02-24 05:39:19 +0000 | |
commit | 0eb92c9f07efde5826d9482a204f97e070338a9d (patch) | |
tree | fac166e711f1c6acf07a60da6a58d3186887d01d | |
parent | add valid_message_id() and valid_message_uid() which test that a message id (diff) | |
download | wireguard-openbsd-0eb92c9f07efde5826d9482a204f97e070338a9d.tar.xz wireguard-openbsd-0eb92c9f07efde5826d9482a204f97e070338a9d.zip |
request a bulk update when the pfsync if configuration is changed via an
ioctl. without this peers would not request a bulk update when they come
up, and therefore will not have the full state tree available for use in
failover.
ok mcbride@ "go for it" deraadt@
-rw-r--r-- | sys/net/if_pfsync.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 86a5ce950f7..b77f74d096f 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.109 2009/02/23 21:16:35 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.110 2009/02/24 05:39:19 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1426,7 +1426,6 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data) ip->ip_dst.s_addr = sc->sc_sync_peer.s_addr; if (sc->sc_sync_if) { -#if 0 /* Request a full state table update. */ sc->sc_ureq_sent = time_uptime; #if NCARP > 0 @@ -1437,9 +1436,7 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data) if (pf_status.debug >= PF_DEBUG_MISC) printf("pfsync: requesting bulk update\n"); timeout_add_sec(&sc->sc_bulkfail_tmo, 5); - /* XXX bulks done this way? */ pfsync_request_update(0, 0); -#endif } splx(s); |