svn commit: r349643 - stable/12/sys/netpfil/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Wed Jul 3 09:45:03 UTC 2019


Author: ae
Date: Wed Jul  3 09:45:02 2019
New Revision: 349643
URL: https://svnweb.freebsd.org/changeset/base/349643

Log:
  MFC r349365:
    Mark default rule with IPFW_RULE_NOOPT flag, so it can be showed in
    compact form.

Modified:
  stable/12/sys/netpfil/ipfw/ip_fw2.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  3 09:43:26 2019	(r349642)
+++ stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  3 09:45:02 2019	(r349643)
@@ -3327,6 +3327,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;


More information about the svn-src-stable-12 mailing list