diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-02-24 05:39:20 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-02-24 05:39:20 +0000 |
commit | 423ceb33d05e87de11fe451872839f3189ccf4e4 (patch) | |
tree | 9ad3ffc192bba59b831a2df796297ed59bb2cc2a /sys | |
parent | eed3eb2754e6467918e5709245264710f4f5b2c8 (diff) |
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@
Diffstat (limited to 'sys')
-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); |