From: Georg Pfuetzenreuter Date: Mon, 13 Oct 2025 17:17:31 +0000 (+0200) Subject: doc: fix tcpdump example X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9516b0a4dfb6e16e3e11c3024683a2df1ea09ab;p=thirdparty%2Fnftables.git doc: fix tcpdump example The expression needs to be enclosed in a single string and combined with a logical AND to have the desired effect. Fixes: 1188a69604c3 ("src: introduce SYNPROXY matching") Signed-off-by: Georg Pfuetzenreuter Reviewed-by: Fernando Fernandez Mancera Signed-off-by: Florian Westphal --- diff --git a/doc/statements.txt b/doc/statements.txt index 6226713b..834f95fb 100644 --- a/doc/statements.txt +++ b/doc/statements.txt @@ -691,8 +691,7 @@ needed for selective acknowledgement and window scaling). --------------------------------------- Determine tcp options used by backend, from an external system - tcpdump -pni eth0 -c 1 'tcp[tcpflags] == (tcp-syn|tcp-ack)' - port 80 & + tcpdump -pni eth0 -c 1 'tcp[tcpflags] == (tcp-syn|tcp-ack) && port 80' & telnet 192.0.2.42 80 18:57:24.693307 IP 192.0.2.42.80 > 192.0.2.43.48757: Flags [S.], seq 360414582, ack 788841994, win 14480,