summaryrefslogtreecommitdiffstats
path: root/sys/net/if_bridge.h
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-05-30 20:08:34 +0000
committerhenning <henning@openbsd.org>2003-05-30 20:08:34 +0000
commit99b6c6e1d561a82dcdb8cf30aee468c9cd7b139f (patch)
tree6f929ba63255c65918fdaae40da3d99cbfb001f2 /sys/net/if_bridge.h
parentthe secgtion is called QUEUEING, not QUEUE RULES, so point people to (diff)
downloadwireguard-openbsd-99b6c6e1d561a82dcdb8cf30aee468c9cd7b139f.tar.xz
wireguard-openbsd-99b6c6e1d561a82dcdb8cf30aee468c9cd7b139f.zip
o the timeout is int, not u_int32_t
o check timeout for negative values and overflow ok tedu@ jason@
Diffstat (limited to 'sys/net/if_bridge.h')
-rw-r--r--sys/net/if_bridge.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_bridge.h b/sys/net/if_bridge.h
index b629cada435..d22814d1798 100644
--- a/sys/net/if_bridge.h
+++ b/sys/net/if_bridge.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.h,v 1.20 2002/12/09 10:11:52 markus Exp $ */
+/* $OpenBSD: if_bridge.h,v 1.21 2003/05/30 20:08:34 henning Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -113,7 +113,7 @@ struct ifbrparam {
char ifbrp_name[IFNAMSIZ];
union {
u_int32_t ifbrpu_csize; /* cache size */
- u_int32_t ifbrpu_ctime; /* cache time (sec) */
+ int ifbrpu_ctime; /* cache time (sec) */
u_int16_t ifbrpu_prio; /* bridge priority */
u_int8_t ifbrpu_hellotime; /* hello time (sec) */
u_int8_t ifbrpu_fwddelay; /* fwd delay (sec) */
@@ -256,7 +256,7 @@ struct bridge_softc {
struct bridge_timer sc_tcn_timer;
u_int32_t sc_brtmax; /* max # addresses */
u_int32_t sc_brtcnt; /* current # addrs */
- u_int32_t sc_brttimeout; /* timeout ticks */
+ int sc_brttimeout; /* timeout ticks */
u_int32_t sc_hashkey; /* hash key */
struct timeout sc_brtimeout; /* timeout state */
struct timeout sc_bstptimeout; /* stp timeout */