From 289e938747276f50d9d00ff9b4c2970d8bccca7e Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 23 Mar 2004 09:57:45 +0000 Subject: 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@ --- sys/net/if_pfsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_pfsync.c') 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) { -- cgit v1.2.3