summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-12-10 18:37:14 +0000
committerluigi <luigi@FreeBSD.org>2009-12-10 18:37:14 +0000
commitc9c12aa332d42b93713e42808084974ed0f56624 (patch)
treeaeccdd859540adc0ee6654fc2d8576d41e4bac0e
parentbe7a7cc5a276f053147b70969ac4806d8c2098a4 (diff)
downloadFreeBSD-src-c9c12aa332d42b93713e42808084974ed0f56624.zip
FreeBSD-src-c9c12aa332d42b93713e42808084974ed0f56624.tar.gz
use div64 when converting back the burst value for userland
-rw-r--r--sys/netinet/ipfw/ip_dummynet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ipfw/ip_dummynet.c b/sys/netinet/ipfw/ip_dummynet.c
index d7ad6dd..bbf0389 100644
--- a/sys/netinet/ipfw/ip_dummynet.c
+++ b/sys/netinet/ipfw/ip_dummynet.c
@@ -2165,7 +2165,7 @@ dummynet_get(struct sockopt *sopt)
*/
bcopy(pipe, bp, sizeof(*pipe));
pipe_bp->delay = (pipe_bp->delay * 1000) / hz;
- pipe_bp->burst /= 8 * hz;
+ pipe_bp->burst = div64(pipe_bp->burst, 8 * hz);
/*
* XXX the following is a hack based on ->next being the
* first field in dn_pipe and dn_flow_set. The correct
OpenPOWER on IntegriCloud