Merge remote branch 'origin/topic/jsiwek/snaplen'

* origin/topic/jsiwek/snaplen:
  Change default snaplen to 65535, add -l/--snaplen command line option.

Closes #447.
This commit is contained in:
Robin Sommer 2011-09-04 08:32:37 -07:00
commit ccad24b685
3 changed files with 14 additions and 8 deletions

View file

@ -19,9 +19,6 @@
#include <pcap-int.h>
#endif
int snaplen = 8192; // really want "capture entire packet"
PktSrc::PktSrc()
{
interface = readfile = 0;
@ -492,7 +489,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 length %d bytes\n", interface, snaplen);
}
else
closed = true;