mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Move zeek::net namespace to zeek::run_state namespace.
This also moves all of the code from Net.{h,cc} to RunState.{h,cc} and marks Net.h as deprecated
This commit is contained in:
parent
d608e7c9a5
commit
0ac3fafe13
64 changed files with 477 additions and 467 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "Dumper.h"
|
||||
#include "../PktSrc.h"
|
||||
#include "../../Net.h"
|
||||
#include "../../RunState.h"
|
||||
|
||||
#include "pcap.bif.h"
|
||||
|
||||
|
@ -47,7 +47,7 @@ void PcapDumper::Open()
|
|||
if ( append )
|
||||
{
|
||||
// See if output file already exists (and is non-empty).
|
||||
exists = stat(props.path.c_str(), &s); ;
|
||||
exists = stat(props.path.c_str(), &s);
|
||||
|
||||
if ( exists < 0 && errno != ENOENT )
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ void PcapDumper::Open()
|
|||
}
|
||||
}
|
||||
|
||||
props.open_time = zeek::net::network_time;
|
||||
props.open_time = zeek::run_state::network_time;
|
||||
props.hdr_size = zeek::Packet::GetLinkHeaderSize(pcap_datalink(pd));
|
||||
Opened(props);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue