mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Deprecate the internal int/uint types in favor of the cstdint types they were based on
This commit is contained in:
parent
18e4976c6c
commit
54752ef9a1
218 changed files with 1331 additions and 1323 deletions
|
@ -14,10 +14,10 @@ public:
|
|||
// 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
|
||||
// (TH_*) with the given probability (from 0..MAX_PROB).
|
||||
void AddSrc(const IPAddr& src, uint32 tcp_flags, double probability);
|
||||
void AddSrc(Val* src, uint32 tcp_flags, double probability);
|
||||
void AddDst(const IPAddr& src, uint32 tcp_flags, double probability);
|
||||
void AddDst(Val* src, uint32 tcp_flags, double probability);
|
||||
void AddSrc(const IPAddr& src, uint32_t tcp_flags, double probability);
|
||||
void AddSrc(Val* src, uint32_t tcp_flags, double probability);
|
||||
void AddDst(const IPAddr& src, uint32_t tcp_flags, double probability);
|
||||
void AddDst(Val* src, uint32_t tcp_flags, double probability);
|
||||
|
||||
// Removes the filter entry for the given src/dst
|
||||
// Returns false if filter doesn not exist.
|
||||
|
@ -31,8 +31,8 @@ public:
|
|||
|
||||
private:
|
||||
struct Filter {
|
||||
uint32 tcp_flags;
|
||||
uint32 probability;
|
||||
uint32_t tcp_flags;
|
||||
uint32_t probability;
|
||||
};
|
||||
|
||||
bool MatchFilter(const Filter& f, const IP_Hdr& ip, int len, int caplen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue