mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Reorder the "prob" section in the output of list/show so it can be copy/pasted
into add without problems. The previous commit had the other half of this original patch which handled tcpflags/tcpflgs confusion in output/input.
This commit is contained in:
parent
c4e667b9d7
commit
976a1c9106
1 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue