mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -42,7 +42,7 @@ protected:
|
|||
class Reporter {
|
||||
public:
|
||||
using IPPair = std::pair<IPAddr, IPAddr>;
|
||||
using WeirdCountMap = std::unordered_map<std::string, uint64>;
|
||||
using WeirdCountMap = std::unordered_map<std::string, uint64_t>;
|
||||
using WeirdFlowMap = std::map<IPPair, WeirdCountMap>;
|
||||
using WeirdSet = std::unordered_set<std::string>;
|
||||
|
||||
|
@ -144,7 +144,7 @@ public:
|
|||
* Return the total number of weirds generated (counts weirds before
|
||||
* any rate-limiting occurs).
|
||||
*/
|
||||
uint64 GetWeirdCount() const
|
||||
uint64_t GetWeirdCount() const
|
||||
{ return weird_count; }
|
||||
|
||||
/**
|
||||
|
@ -177,7 +177,7 @@ public:
|
|||
*
|
||||
* @return weird sampling threshold.
|
||||
*/
|
||||
uint64 GetWeirdSamplingThreshold() const
|
||||
uint64_t GetWeirdSamplingThreshold() const
|
||||
{
|
||||
return weird_sampling_threshold;
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ public:
|
|||
*
|
||||
* @param weird_sampling_threshold New weird sampling threshold.
|
||||
*/
|
||||
void SetWeirdSamplingThreshold(uint64 weird_sampling_threshold)
|
||||
void SetWeirdSamplingThreshold(uint64_t weird_sampling_threshold)
|
||||
{
|
||||
this->weird_sampling_threshold = weird_sampling_threshold;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ public:
|
|||
*
|
||||
* @return weird sampling rate.
|
||||
*/
|
||||
uint64 GetWeirdSamplingRate() const
|
||||
uint64_t GetWeirdSamplingRate() const
|
||||
{
|
||||
return weird_sampling_rate;
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ public:
|
|||
*
|
||||
* @param weird_sampling_rate New weird sampling rate.
|
||||
*/
|
||||
void SetWeirdSamplingRate(uint64 weird_sampling_rate)
|
||||
void SetWeirdSamplingRate(uint64_t weird_sampling_rate)
|
||||
{
|
||||
this->weird_sampling_rate = weird_sampling_rate;
|
||||
}
|
||||
|
@ -268,14 +268,14 @@ private:
|
|||
|
||||
std::list<std::pair<const Location*, const Location*> > locations;
|
||||
|
||||
uint64 weird_count;
|
||||
uint64_t weird_count;
|
||||
WeirdCountMap weird_count_by_type;
|
||||
WeirdCountMap net_weird_state;
|
||||
WeirdFlowMap flow_weird_state;
|
||||
|
||||
WeirdSet weird_sampling_whitelist;
|
||||
uint64 weird_sampling_threshold;
|
||||
uint64 weird_sampling_rate;
|
||||
uint64_t weird_sampling_threshold;
|
||||
uint64_t weird_sampling_rate;
|
||||
double weird_sampling_duration;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue