diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:13 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:13 -0300 |
commit | 14cc93f3403d906f596ddc18d531bb13f053fa76 (patch) | |
tree | b10a13ccfcf21df206a5471e9b3a8b11ec927232 /sbin/pfctl/pfctl_parser.c | |
parent | fa9181508d9f4170f8a35bdfbe349210c30dbceb (diff) | |
download | FreeBSD-src-14cc93f3403d906f596ddc18d531bb13f053fa76.zip FreeBSD-src-14cc93f3403d906f596ddc18d531bb13f053fa76.tar.gz |
Importing pfSense patch divert.RELENG_10.diff
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index ab20398..b4fe20a 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -922,7 +922,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose, int numeric) printf(" probability %s%%", buf); } opts = 0; - if (r->max_states || r->max_src_nodes || r->max_src_states) + if (r->max_states || r->max_src_nodes || r->max_src_states || r->spare2) opts = 1; if (r->rule_flag & PFRULE_NOSYNC) opts = 1; @@ -969,6 +969,12 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose, int numeric) printf("max-src-conn %u", r->max_src_conn); opts = 0; } + if (r->spare2) { + if (!opts) + printf(", "); + printf("max-packets %u", r->spare2); + opts = 0; + } if (r->max_src_conn_rate.limit) { if (!opts) printf(", "); |