summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2000-06-26 23:16:37 +0000
committerart <art@openbsd.org>2000-06-26 23:16:37 +0000
commitf146741388fa467e498111bc4b9b5b28106d2181 (patch)
treedf27bbd5ce9458dc380804163e24a784a7c965da
parentNew timeouts. (diff)
downloadwireguard-openbsd-f146741388fa467e498111bc4b9b5b28106d2181.tar.xz
wireguard-openbsd-f146741388fa467e498111bc4b9b5b28106d2181.zip
timeout is in seconds, not ticks.
-rw-r--r--sys/net/if_bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 1f46d2f10bc..5c90258dd75 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.34 2000/06/22 19:00:21 art Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.35 2000/06/26 23:16:37 art Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -457,7 +457,7 @@ bridge_ioctl(ifp, cmd, data)
sc->sc_brttimeout = bcacheto->ifbct_time;
timeout_del(&sc->sc_brtimeout);
if (bcacheto->ifbct_time != 0)
- timeout_add(&sc->sc_brtimeout, sc->sc_brttimeout);
+ timeout_add(&sc->sc_brtimeout, sc->sc_brttimeout * hz);
break;
case SIOCBRDGGTO:
bcacheto->ifbct_time = sc->sc_brttimeout;