Some minor fixes
Phil Sutter
reviewercover Some minor fixes
Correct some things I noticed while working on something else. Nothing depends on those, so push them separately.
Phil Sutter (5):
tests: iptables-test: Append stderr output to log file
man: xtables-legacy.8: Join two paragraphs
man: ebtables-nft.8: Note that --concurrent is a NOP
gitignore: Ignore generated arptables-translate.8
xshared: iptables does not support '-b'
iptables-test.py | 6 ++++++ iptables/.gitignore | 1 + iptables/ebtables-nft.8 | 3 ++- iptables/xshared.h | 2 +- iptables/xtables-legacy.8 | 1 - 5 files changed, 10 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0
Phil Sutter
reviewerPATCH 1/5 tests: iptables-test: Append stderr output to log file
Right now this merely contains a number of intrapositioned negation warnings, but might be useful in future when debugging unexpected failures.
--- iptables-test.py | 6 ++++++ 1 file changed, 6 insertions(+)
iptables-test.py +6 -0
@@ -132,6 +132,8 @@ STDERR_IS_TTY = sys.stderr.isatty() stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = proc.communicate() + if len(err): + print(err, file=log_file) # # check for segfaults
@@ -333,6 +335,8 @@ STDERR_IS_TTY = sys.stderr.isatty() stderr = subprocess.PIPE) restore_data = "\n".join(restore_data) + "\n" out, err = proc.communicate(input = restore_data) + if len(err): + print(err, file=log_file) if proc.returncode == -11: reason = iptables + "-restore segfaults!"
@@ -358,6 +362,8 @@ STDERR_IS_TTY = sys.stderr.isatty() stdout = subprocess.PIPE, stderr = subprocess.PIPE) out, err = proc.communicate() + if len(err): + print(err, file=log_file) if proc.returncode == -11: reason = iptables + "-save segfaults!"
Signature · 1 line
2.43.0
Phil Sutter
reviewerPATCH 2/5 man: xtables-legacy.8: Join two paragraphs
In reply to Phil SutterThe second one referring to xtables-monitor seems out of context without the first one, join them.
--- iptables/xtables-legacy.8 | 1 - 1 file changed, 1 deletion(-)
iptables/xtables-legacy.8 +0 -1
@@ -63,7 +63,6 @@ updates might be lost. This can be worked around partially with the \-\-wait op There is also no method to monitor changes to the ruleset, except periodically calling iptables-legacy-save and checking for any differences in output. - .B xtables\-monitor(8) will need the .B xtables\-nft(8)
Signature · 1 line
2.43.0
Phil Sutter
reviewerPATCH 3/5 man: ebtables-nft.8: Note that --concurrent is a NOP
In reply to Phil SutterFor obvious reasons, ebtables-nft does not need file-based locking to prevent concurrency.
--- iptables/ebtables-nft.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
iptables/ebtables-nft.8 +2 -1
@@ -358,7 +358,8 @@ When talking to the kernel, use this to try to automatically load missing kernel modules. .TP .B --concurrent -Use a file lock to support concurrent scripts updating the ebtables kernel tables. +This would use a file lock to support concurrent scripts updating the ebtables +kernel tables. It is not needed with \fBebtables-nft\fP though and thus ignored. .SS RULE SPECIFICATIONS
Signature · 1 line
2.43.0
Phil Sutter
reviewerPATCH 4/5 gitignore: Ignore generated arptables-translate.8
In reply to Phil SutterIt is a semantic link created by the build system.
--- iptables/.gitignore | 1 + 1 file changed, 1 insertion(+)
iptables/.gitignore +1 -0
@@ -1,3 +1,4 @@ +/arptables-translate.8 /ebtables-translate.8 /ip6tables /ip6tables.8
Signature · 1 line
2.43.0
Phil Sutter
reviewerPATCH 5/5 xshared: iptables does not support '-b'
In reply to Phil SutterThis flag is merely known to iptables-restore but actively rejected there and it does not use IPT_OPTSTRING at all.
--- iptables/xshared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/xshared.h +1 -1
@@ -80,7 +80,7 @@ struct xtables_rule_match;struct xtables_target ;#define OPTSTRING_COMMON "-:A:C:D:E:F::I:L::M:N:P:R:S::VX::Z::" "c:d:i:j:o:p:s:t:v" -#define IPT_OPTSTRING OPTSTRING_COMMON "W::" "46bfg:h::m:nw::x" +#define IPT_OPTSTRING OPTSTRING_COMMON "W::" "46fg:h::m:nw::x"#define ARPT_OPTSTRING OPTSTRING_COMMON "h::l:nx"/* "m:" */ #define EBT_OPTSTRING OPTSTRING_COMMON "h"
Signature · 1 line
2.43.0
Phil Sutter
reviewerQuoted 9 lines · Phil Sutter
Correct some things I noticed while working on something else. Nothing depends on those, so push them separately.
Phil Sutter (5):
tests: iptables-test: Append stderr output to log file
man: xtables-legacy.8: Join two paragraphs
man: ebtables-nft.8: Note that --concurrent is a NOP
gitignore: Ignore generated arptables-translate.8
xshared: iptables does not support '-b'
Series applied.