mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
|
@ -7,17 +7,20 @@
|
|||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/PrefixTable.h"
|
||||
|
||||
namespace zeek {
|
||||
namespace zeek
|
||||
{
|
||||
|
||||
class IP_Hdr;
|
||||
class Val;
|
||||
|
||||
namespace detail {
|
||||
namespace detail
|
||||
{
|
||||
|
||||
class PacketFilter {
|
||||
class PacketFilter
|
||||
{
|
||||
public:
|
||||
explicit PacketFilter(bool arg_default);
|
||||
~PacketFilter() {}
|
||||
~PacketFilter() { }
|
||||
|
||||
// Drops all packets from a particular source (which may be given
|
||||
// as an AddrVal or a SubnetVal) which hasn't any of TCP flags set
|
||||
|
@ -38,10 +41,11 @@ public:
|
|||
bool Match(const std::unique_ptr<IP_Hdr>& ip, int len, int caplen);
|
||||
|
||||
private:
|
||||
struct Filter {
|
||||
struct Filter
|
||||
{
|
||||
uint32_t tcp_flags;
|
||||
double probability;
|
||||
};
|
||||
};
|
||||
|
||||
static void DeleteFilter(void* data);
|
||||
|
||||
|
@ -50,7 +54,7 @@ private:
|
|||
bool default_match;
|
||||
PrefixTable src_filter;
|
||||
PrefixTable dst_filter;
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace zeek
|
||||
} // namespace detail
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue