aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw/ipfw2.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2018-12-04 16:12:43 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2018-12-04 16:12:43 +0000
commitd66f9c86fa3fd8d8f0a56ea96b03ca11f2fac1fb (patch)
tree0315ee86648d11c7484394ebdf189819d9c638a1 /sbin/ipfw/ipfw2.h
parentcefe3d67e29b9d9321a0677cc565d8c05c230d82 (diff)
downloadsrc-d66f9c86fa3fd8d8f0a56ea96b03ca11f2fac1fb.tar.gz
src-d66f9c86fa3fd8d8f0a56ea96b03ca11f2fac1fb.zip
Add ability to request listing and deleting only for dynamic states.
This can be useful, when net.inet.ip.fw.dyn_keep_states is enabled, but after rules reloading some state must be deleted. Added new flag '-D' for such purpose. Retire '-e' flag, since there can not be expired states in the meaning that this flag historically had. Also add "verbose" mode for listing of dynamic states, it can be enabled with '-v' flag and adds additional information to states list. This can be useful for debugging. Obtained from: Yandex LLC MFC after: 2 months Sponsored by: Yandex LLC
Notes
Notes: svn path=/head/; revision=341472
Diffstat (limited to 'sbin/ipfw/ipfw2.h')
-rw-r--r--sbin/ipfw/ipfw2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h
index bb0a4cdfdeb3..8e279389a1eb 100644
--- a/sbin/ipfw/ipfw2.h
+++ b/sbin/ipfw/ipfw2.h
@@ -37,8 +37,6 @@ struct cmdline_opts {
int do_quiet; /* Be quiet in add and flush */
int do_pipe; /* this cmd refers to a pipe/queue/sched */
int do_nat; /* this cmd refers to a nat config */
- int do_dynamic; /* display dynamic rules */
- int do_expired; /* display expired dynamic rules */
int do_compact; /* show rules in compact mode */
int do_force; /* do not ask for confirmation */
int show_sets; /* display the set each rule belongs to */
@@ -48,6 +46,8 @@ struct cmdline_opts {
/* The options below can have multiple values. */
+ int do_dynamic; /* 1 - display dynamic rules */
+ /* 2 - display/delete only dynamic rules */
int do_sort; /* field to sort results (0 = no) */
/* valid fields are 1 and above */