summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-03-23 09:57:45 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-03-23 09:57:45 +0000
commit289e938747276f50d9d00ff9b4c2970d8bccca7e (patch)
treef607182680b3b70596c6a85cf9c41606acbb9f6b /sys/net/if_pfsync.c
parent5670ce097568ee5f139976e4980e09ad0688ea5c (diff)
Hold off for 1 second before beginning bulk transfer. Avoids looping
until mono_time.tv_sec advances past the time the bulk transfer request was recieved. ok cedric@ deraadt@
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index e67cfb4f2b7..1217de2b5ca 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.24 2004/03/22 04:54:17 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.25 2004/03/23 09:57:44 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -503,7 +503,7 @@ pfsync_input(struct mbuf *m, ...)
printf("pfsync: received "
"bulk update request\n");
pfsync_send_bus(sc, PFSYNC_BUS_START);
- pfsync_bulk_update(sc);
+ timeout_add(&sc->sc_bulk_tmo, 1 * hz);
} else {
st = pf_find_state_byid(&key);
if (st == NULL) {