mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Fix for packet writing to make it use the global snaplength.
This commit is contained in:
parent
28673bd198
commit
22f8bb9dd8
1 changed files with 1 additions and 1 deletions
|
@ -661,7 +661,7 @@ PktDumper::PktDumper(const char* arg_filename, bool arg_append)
|
||||||
if ( linktype < 0 )
|
if ( linktype < 0 )
|
||||||
linktype = DLT_EN10MB;
|
linktype = DLT_EN10MB;
|
||||||
|
|
||||||
pd = pcap_open_dead(linktype, 8192);
|
pd = pcap_open_dead(linktype, snaplen);
|
||||||
if ( ! pd )
|
if ( ! pd )
|
||||||
{
|
{
|
||||||
Error("error for pcap_open_dead");
|
Error("error for pcap_open_dead");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue