]> The Tcpdump Group git mirrors - libpcap/commitdiff
Give recommendations for "capture all of the packet" snaplen values.
authorGuy Harris <[email protected]>
Tue, 5 Mar 2024 08:14:16 +0000 (00:14 -0800)
committerGuy Harris <[email protected]>
Tue, 5 Mar 2024 08:14:16 +0000 (00:14 -0800)
It's 256KB for most devices, and 128MB for D-Bus devices.

pcap_open_live.3pcap

index 4735c2527d1c94257409403b1d8deb922f3a81ac..86923c7eff202e98695688aa3dd06fa72cfdffa9 100644 (file)
@@ -17,7 +17,7 @@
 .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
-.TH PCAP_OPEN_LIVE 3PCAP "5 December 2023"
+.TH PCAP_OPEN_LIVE 3PCAP "4 March 2024"
 .SH NAME
 pcap_open_live \- open a device for capturing
 .SH SYNOPSIS
@@ -52,7 +52,10 @@ not be confused with all available capture devices as seen by
 which may also include D-Bus, USB etc.
 .PP
 .I snaplen
-specifies the snapshot length to be set on the handle.
+specifies the snapshot length to be set on the handle.  If the packet
+data should not be truncated at the end, a value of 262144 should be
+sufficient for most devices, but D-Bus devices require a value of 128Mb
+(128*1024*1024).
 .PP
 .I promisc
 specifies whether the interface is to be put into promiscuous mode.