]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use MAXIMUM_SNAPLEN macro
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Oct 2019 05:07:27 +0000 (07:07 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Oct 2019 05:07:27 +0000 (07:07 +0200)
tcpdump.c

index b0779a7cff45bd326818886d7bcaf3f1b71655cd..a9c2b7dcd930ed690416bfce0723352ee2c85c67 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1408,7 +1408,7 @@ open_interface(const char *device, netdissect_options *ndo, char *ebuf)
         * specified, default to 256KB.
         */
        if (ndo->ndo_snaplen == 0)
-               ndo->ndo_snaplen = 262144;
+               ndo->ndo_snaplen = MAXIMUM_SNAPLEN;
        pc = pcap_open_live(device, ndo->ndo_snaplen, !pflag, 1000, ebuf);
        if (pc == NULL) {
                /*