Mark default rule with IPFW_RULE_NOOPT flag, so it can be showed in
compact form. MFC after: 1 week
This commit is contained in:
parent
55507128b9
commit
7d4b2d5244
@ -3364,6 +3364,7 @@ vnet_ipfw_init(const void *unused)
|
||||
|
||||
/* fill and insert the default rule */
|
||||
rule = ipfw_alloc_rule(chain, sizeof(struct ip_fw));
|
||||
rule->flags |= IPFW_RULE_NOOPT;
|
||||
rule->cmd_len = 1;
|
||||
rule->cmd[0].len = 1;
|
||||
rule->cmd[0].opcode = default_to_accept ? O_ACCEPT : O_DENY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user