mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Deprecate bro_int_t and bro_uint_t
This commit is contained in:
parent
d066013793
commit
f624c18383
67 changed files with 331 additions and 320 deletions
|
@ -139,7 +139,7 @@ bool IPBasedAnalyzer::CheckHeaderTrunc(size_t min_hdr_len, size_t remaining, Pac
|
|||
bool IPBasedAnalyzer::IsLikelyServerPort(uint32_t port) const
|
||||
{
|
||||
// We keep a cached in-core version of the table to speed up the lookup.
|
||||
static std::set<bro_uint_t> port_cache;
|
||||
static std::set<zeek_uint_t> port_cache;
|
||||
static bool have_cache = false;
|
||||
|
||||
if ( ! have_cache )
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
bro_uint_t skip_bytes = 0;
|
||||
zeek_uint_t skip_bytes = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -429,7 +429,7 @@ static zeek::RecordValPtr build_syn_packet_val(bool is_orig, const zeek::IP_Hdr*
|
|||
}
|
||||
|
||||
static void init_window(analyzer::tcp::TCP_Endpoint* endpoint, analyzer::tcp::TCP_Endpoint* peer,
|
||||
analyzer::tcp::TCP_Flags flags, bro_int_t scale, uint32_t base_seq,
|
||||
analyzer::tcp::TCP_Flags flags, zeek_int_t scale, uint32_t base_seq,
|
||||
uint32_t ack_seq)
|
||||
{
|
||||
// ### In the following, we could be fooled by an
|
||||
|
|
|
@ -38,7 +38,7 @@ void UDPSessionAdapter::UpdateConnVal(RecordVal* conn_val)
|
|||
|
||||
void UDPSessionAdapter::UpdateEndpointVal(const ValPtr& endp_arg, bool is_orig)
|
||||
{
|
||||
bro_int_t size = is_orig ? request_len : reply_len;
|
||||
zeek_int_t size = is_orig ? request_len : reply_len;
|
||||
auto endp = endp_arg->AsRecordVal();
|
||||
|
||||
if ( size < 0 )
|
||||
|
|
|
@ -30,8 +30,8 @@ private:
|
|||
void UpdateEndpointVal(const ValPtr& endp_arg, bool is_orig);
|
||||
void ChecksumEvent(bool is_orig, uint32_t threshold);
|
||||
|
||||
bro_int_t request_len = -1;
|
||||
bro_int_t reply_len = -1;
|
||||
zeek_int_t request_len = -1;
|
||||
zeek_int_t reply_len = -1;
|
||||
};
|
||||
|
||||
} // namespace zeek::packet_analysis::UDP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue