]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Fix for *pcaps without pcap_create()/pcap_activate().
[tcpdump] / tcpdump.c
index 4cf7484967a34c614f55b418b45ad72abd533954..43457eae900465b8e28339e714a6673adcae0835 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1423,7 +1423,8 @@ main(int argc, char **argv)
 #endif /* HAVE_PCAP_SETDIRECTION */
 #else
                *ebuf = '\0';
-               pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf);
+               pd = pcap_open_live(device, ndo->ndo_snaplen, !pflag, 1000,
+                   ebuf);
                if (pd == NULL)
                        error("%s", ebuf);
                else if (*ebuf)