bugzilla-daemon at netfilter.org
2023-Sep-26 11:04 UTC
[Bug 1708] New: iptables-restore -h doesn't show -w and -W options
https://bugzilla.netfilter.org/show_bug.cgi?id=1708
Bug ID: 1708
Summary: iptables-restore -h doesn't show -w and -W options
Product: iptables
Version: 1.8.x
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: iptables-restore
Assignee: netfilter-buglog at lists.netfilter.org
Reporter: pedretti.fabio at gmail.com
The options are supported, however they are missing from the help:
$ iptables-restore -h
Usage: iptables-restore [-c] [-v] [-V] [-t] [-h] [-n] [-T table] [-M command]
[-4] [-6] [file]
[ --counters ]
[ --verbose ]
[ --version]
[ --test ]
[ --help ]
[ --noflush ]
[ --table=<TABLE> ]
[ --modprobe=<command> ]
[ --ipv4 ]
[ --ipv6 ]
$
Also, the output could be improved:
- group together the short and long options
- use the same sorting as in the man page
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20230926/86a9a9e4/attachment.html>
bugzilla-daemon at netfilter.org
2023-Sep-26 12:42 UTC
[Bug 1708] iptables-restore -h doesn't show -w and -W options
https://bugzilla.netfilter.org/show_bug.cgi?id=1708
Phil Sutter <phil at nwl.cc> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |phil at nwl.cc
--- Comment #1 from Phil Sutter <phil at nwl.cc> ---
(In reply to Fabio from comment #0)> The options are supported, however they are missing from the help:
>
> $ iptables-restore -h
> Usage: iptables-restore [-c] [-v] [-V] [-t] [-h] [-n] [-T table] [-M
> command] [-4] [-6] [file]
> [ --counters ]
> [ --verbose ]
> [ --version]
> [ --test ]
> [ --help ]
> [ --noflush ]
> [ --table=<TABLE> ]
> [ --modprobe=<command> ]
> [ --ipv4 ]
> [ --ipv6 ]
> $
You are using iptables-nft-restore which neither needs nor uses --wait. The
option is still accepted for compatibility (to not break existing scripts
passing the argument). Note that --wait-interval is gone since v1.8.8 in both
legacy and nft variants, see commit 07e2107ef0cbc ("xshared: Implement
xtables
lock timeout using signals"). for details.
> Also, the output could be improved:
> - group together the short and long options
> - use the same sorting as in the man page
Feel free to send a patch, or suggest an improved output in a comment here.
Thanks, Phil
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20230926/db672944/attachment.html>