Change default snaplen to 65535, add -l/--snaplen command line option.

Addresses #447.
This commit is contained in:
Jon Siwek 2011-08-29 15:47:48 -05:00
parent 005b1505b8
commit 0ae1d8a359
2 changed files with 11 additions and 5 deletions

View file

@ -19,7 +19,7 @@
#include <pcap-int.h>
#endif
int snaplen = 8192; // really want "capture entire packet"
int snaplen = 65535; // really want "capture entire packet"
PktSrc::PktSrc()
@ -492,7 +492,7 @@ PktInterfaceSrc::PktInterfaceSrc(const char* arg_interface, const char* filter,
// Couldn't get header size.
return;
reporter->Info("listening on %s\n", interface);
reporter->Info("listening on %s, capture size %i bytes\n", interface, snaplen);
}
else
closed = true;