aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2000-06-18 02:48:19 +0000
committerBill Fumerola <billf@FreeBSD.org>2000-06-18 02:48:19 +0000
commit976a1c910673d4c62f6003c1fd4a274e556e2922 (patch)
treef44218a10dc29986c0162f131da720493328febe
parentc4e667b9d78a80c295a81a434f10d4d19ed96797 (diff)
Notes
-rw-r--r--sbin/ipfw/ipfw.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c
index aa79185eb7218..47a72891ee9ff 100644
--- a/sbin/ipfw/ipfw.c
+++ b/sbin/ipfw/ipfw.c
@@ -217,6 +217,12 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
goto done ;
}
+ if (chain->fw_flg & IP_FW_F_RND_MATCH) {
+ double d = 1.0 * (int)(chain->pipe_ptr) ;
+ d = 1 - (d / 0x7fffffff) ;
+ printf("prob %f ", d);
+ }
+
switch (chain->fw_flg & IP_FW_F_COMMAND)
{
case IP_FW_F_ACCEPT:
@@ -260,11 +266,6 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth)
errx(EX_OSERR, "impossible");
}
- if (chain->fw_flg & IP_FW_F_RND_MATCH) {
- double d = 1.0 * (int)(chain->pipe_ptr) ;
- d = 1 - (d / 0x7fffffff) ;
- printf(" prob %f", d);
- }
if (chain->fw_flg & IP_FW_F_PRN) {
printf(" log");
if (chain->fw_logamount)