mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Change default snaplen to 65535, add -l/--snaplen command line option.
Addresses #447.
This commit is contained in:
parent
005b1505b8
commit
0ae1d8a359
2 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue