-Fix display of nat range.
-Whitespace elimination. Bug spotted by: Luiz Otavio O Souza MFC After: 3 days
This commit is contained in:
parent
4bf10a52b0
commit
d956bdf35e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176445
@ -5932,6 +5932,8 @@ show_nat(int ac, char **av) {
|
||||
nalloc = 1024;
|
||||
size = 0;
|
||||
data = NULL;
|
||||
frule = 0;
|
||||
lrule = 65535; /* max ipfw rule number */
|
||||
ac--; av++;
|
||||
|
||||
/* Parse parameters. */
|
||||
@ -5965,10 +5967,7 @@ show_nat(int ac, char **av) {
|
||||
nat_cnt = *((int *)data);
|
||||
for (i = sizeof(nat_cnt); nat_cnt; nat_cnt--) {
|
||||
n = (struct cfg_nat *)&data[i];
|
||||
if (do_rule) {
|
||||
if (!(frule <= n->id && lrule >= n->id))
|
||||
continue;
|
||||
}
|
||||
if (frule <= n->id && lrule >= n->id)
|
||||
print_nat_config(&data[i]);
|
||||
i += sizeof(struct cfg_nat);
|
||||
for (redir_cnt = 0; redir_cnt < n->redir_cnt; redir_cnt++) {
|
||||
|
Loading…
Reference in New Issue
Block a user