summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-10-08 07:07:27 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-10-08 07:07:27 +0200
commitd3c8b3307a8a2423bf905804b55e80c1621ced0d (patch)
tree8aaa3a749d607c8e71a921067a8acae0ded5f72e /tcpdump.c
parentdbd70580fa548c39813c3e1b45455a3ac4acf25a (diff)
downloadtcpdump-d3c8b3307a8a2423bf905804b55e80c1621ced0d.tar.gz
Use MAXIMUM_SNAPLEN macro
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpdump.c b/tcpdump.c
index b0779a7c..a9c2b7dc 100644
--- 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) {
/*