Fix for packet writing to make it use the global snaplength.

This commit is contained in:
Seth Hall 2014-01-08 21:50:03 -05:00
parent 28673bd198
commit 22f8bb9dd8

View file

@ -661,7 +661,7 @@ PktDumper::PktDumper(const char* arg_filename, bool arg_append)
if ( linktype < 0 )
linktype = DLT_EN10MB;
pd = pcap_open_dead(linktype, 8192);
pd = pcap_open_dead(linktype, snaplen);
if ( ! pd )
{
Error("error for pcap_open_dead");