Skip to contentSkip to conversation

bpf, docs: Fix tcpdump option

PATCH In review Thorsten Scherer 2 participants 3 messages Nov 19, 2024 – Nov 23, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf, docs: Fix tcpdump option

From tcpdump(8):

-dd Dump packet-matching code as a C program fragment.

Fixes 7924cd5e0b3a ("filter: doc: improve BPF documentation")
---
 Documentation/networking/filter.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/networking/filter.rst +1 -1
index 8eb9a5d40f31..06e244094f49 100644
@@ -49,7 +49,7 @@ assured that the filter will be kept until the socket is closed.
 The biggest user of this construct might be libpcap. Issuing a high-level
 filter command like `tcpdump -i em1 port 22` passes through the libpcap
 internal compiler that generates a structure that can eventually be loaded
-via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -ddd`
+via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -dd`
 displays what is being placed into this structure.
 
 Although we were only speaking about sockets here, BPF in Linux is used
Signature · 1 line
2.45.2
maintainer
#1 lore raw
Quoted 15 lines · Thorsten Scherer

From tcpdump(8):

-dd Dump packet-matching code as a C program fragment.

Fixes 7924cd5e0b3a ("filter: doc: improve BPF documentation")
---
 Documentation/networking/filter.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/networking/filter.rst +0 -0
index 8eb9a5d40f31..06e244094f49 100644

Documentation/networking/filter.rst assured that the filter will be kept until the socket is closed. · line 53

Quoted 6 lines
Documentation/networking/filter.rst +1 -1
@@ -49,7 +49,7 @@ assured that the filter will be kept until the socket is closed.
 The biggest user of this construct might be libpcap. Issuing a high-level
 filter command like `tcpdump -i em1 port 22` passes through the libpcap
 internal compiler that generates a structure that can eventually be loaded
-via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -ddd`
+via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -dd`
 displays what is being placed into this structure.

So I suspect you may be right, but both are legal options. When you apply a Fixes tag to a patch, it's generally a good idea to copy the author of the patch you claim to be fixing. Let's do that now and see what Daniel has to say...?

Thanks,

jon

#2 lore raw

Apologies for the improper selection of recipients. No bad intention.

Best regards
Thorsten

Quoted 32 lines · Jonathan Corbet
Quoted 15 lines · Thorsten Scherer

From tcpdump(8):

-dd Dump packet-matching code as a C program fragment.

Fixes 7924cd5e0b3a ("filter: doc: improve BPF documentation")
---
 Documentation/networking/filter.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/networking/filter.rst +0 -0
index 8eb9a5d40f31..06e244094f49 100644

Documentation/networking/filter.rst assured that the filter will be kept until the socket is closed. · line 53

Quoted 6 lines
Documentation/networking/filter.rst +1 -1
@@ -49,7 +49,7 @@ assured that the filter will be kept until the socket is closed.
 The biggest user of this construct might be libpcap. Issuing a high-level
 filter command like `tcpdump -i em1 port 22` passes through the libpcap
 internal compiler that generates a structure that can eventually be loaded
-via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -ddd`
+via SO_ATTACH_FILTER to the kernel. `tcpdump -i em1 port 22 -dd`
 displays what is being placed into this structure.

So I suspect you may be right, but both are legal options. When you apply a Fixes tag to a patch, it's generally a good idea to copy the author of the patch you claim to be fixing. Let's do that now and see what Daniel has to say...?

Thanks,

jon