bpf, docs: Fix tcpdump option
Subsystems (3)
PATCH 1/1 bpf, docs: Fix tcpdump option
From tcpdump(8):
-dd Dump packet-matching code as a C program fragment.
--- Documentation/networking/filter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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. Although we were only speaking about sockets here, BPF in Linux is used
Signature · 1 line
2.45.2
Jonathan Corbet
maintainerQuoted 15 lines · Thorsten Scherer
From tcpdump(8):
-dd Dump packet-matching code as a C program fragment.
Fixes 7924cd5e0b3a ("filter: doc: improve BPF documentation")Signed-off-by Thorsten Scherer <[email protected]>--- Documentation/networking/filter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/networking/filter.rst +0
-0
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
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")Signed-off-by Thorsten Scherer <[email protected]>--- Documentation/networking/filter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/networking/filter.rst +0
-0Documentation/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