Move Reporter to zeek namespace

This commit is contained in:
Tim Wojtulewicz 2020-07-20 10:57:36 -07:00
parent 7cedd94ee7
commit bfab224d7c
132 changed files with 1010 additions and 987 deletions

View file

@ -210,11 +210,11 @@ bool PcapSource::ExtractNextPacket(Packet* pkt)
case PCAP_ERROR: // -1
// Error occurred while reading the packet.
if ( props.is_live )
reporter->Error("failed to read a packet from %s: %s",
props.path.data(), pcap_geterr(pd));
zeek::reporter->Error("failed to read a packet from %s: %s",
props.path.data(), pcap_geterr(pd));
else
reporter->FatalError("failed to read a packet from %s: %s",
props.path.data(), pcap_geterr(pd));
zeek::reporter->FatalError("failed to read a packet from %s: %s",
props.path.data(), pcap_geterr(pd));
return false;
case 0:
// Read from live interface timed out (ok).
@ -223,7 +223,7 @@ bool PcapSource::ExtractNextPacket(Packet* pkt)
// Read a packet without problem.
break;
default:
reporter->InternalError("unhandled pcap_next_ex return value: %d", res);
zeek::reporter->InternalError("unhandled pcap_next_ex return value: %d", res);
return false;
}