All of lore.kernel.org
 help / color / mirror / Atom feed
From: georg@syscid.com
To: netfilter-devel@vger.kernel.org
Cc: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Subject: [nftables PATCH] doc: fix tcpdump example
Date: Mon, 13 Oct 2025 19:17:31 +0200	[thread overview]
Message-ID: <20251013171730.1447005-2-georg@syscid.com> (raw)

From: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>

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 <mail@georg-pfuetzenreuter.net>
---
 doc/statements.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/doc/statements.txt b/doc/statements.txt
index 6226713ba389..834f95fbb2a8 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,
-- 
2.50.1


             reply	other threads:[~2025-10-13 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13 17:17 georg [this message]
2025-10-13 19:19 ` [nftables PATCH] doc: fix tcpdump example Fernando Fernandez Mancera
2025-10-13 19:43   ` Florian Westphal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251013171730.1447005-2-georg@syscid.com \
    --to=georg@syscid.com \
    --cc=mail@georg-pfuetzenreuter.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.