GH-1184: Add 'source' field to weird log denoting where the weird was reported

This commit is contained in:
Tim Wojtulewicz 2020-11-05 13:18:54 -07:00
parent eccbbb4476
commit e27008ef26
72 changed files with 964 additions and 890 deletions

View file

@ -76,11 +76,6 @@ Packet::~Packet()
delete [] data;
}
void Packet::Weird(const char* name)
{
sessions->Weird(name, this);
}
RecordValPtr Packet::ToRawPktHdrVal() const
{
static auto raw_pkt_hdr_type = id::find_type<RecordType>("raw_pkt_hdr");

View file

@ -124,9 +124,6 @@ public:
[[deprecated("Remove in v4.1. Use ToRawPktHdrval() instead.")]]
RecordVal* BuildPktHdrVal() const;
// Wrapper to generate a packet-level weird. Has to be public for llanalyzers to use it.
void Weird(const char* name);
/**
* Maximal length of a layer 2 address.
*/

View file

@ -135,7 +135,7 @@ void PktSrc::Info(const std::string& msg)
void PktSrc::Weird(const std::string& msg, const Packet* p)
{
sessions->Weird(msg.c_str(), p, nullptr);
sessions->Weird(msg.c_str(), p);
}
void PktSrc::InternalError(const std::string& msg)