Move all of the Packet-related classes to namespaces

This commit is contained in:
Tim Wojtulewicz 2020-07-21 09:37:55 -07:00
parent 45b5a98420
commit 93948b4d19
25 changed files with 116 additions and 73 deletions

View file

@ -59,6 +59,8 @@ int pcap_compile_nopcap(int snaplen_arg, int linktype_arg,
}
#endif
namespace zeek::detail {
// Simple heuristic to identify filters that always match, so that we can
// skip the filtering in that case. "ip or not ip" is Bro's default filter.
static bool filter_matches_anything(const char *filter)
@ -158,3 +160,5 @@ void BPF_Program::FreeCode()
m_compiled = false;
}
}
} // namespace zeek::detail