mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Move all of the Packet-related classes to namespaces
This commit is contained in:
parent
45b5a98420
commit
93948b4d19
25 changed files with 116 additions and 73 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue