mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Deprecate BuildConnVal() methods and update usages to ConnVal()
The later being a new method that returns IntrusivePtr
This commit is contained in:
parent
094d6de979
commit
2a63e4a4a2
41 changed files with 208 additions and 189 deletions
|
@ -150,7 +150,7 @@ void TCP_Reassembler::Gap(uint64_t seq, uint64_t len)
|
|||
|
||||
if ( report_gap(endp, endp->peer) )
|
||||
dst_analyzer->EnqueueConnEvent(content_gap,
|
||||
IntrusivePtr{AdoptRef{}, dst_analyzer->BuildConnVal()},
|
||||
dst_analyzer->ConnVal(),
|
||||
val_mgr->Bool(IsOrig()),
|
||||
val_mgr->Count(seq),
|
||||
val_mgr->Count(len)
|
||||
|
@ -360,7 +360,7 @@ void TCP_Reassembler::RecordBlock(const DataBlock& b, BroFile* f)
|
|||
|
||||
if ( contents_file_write_failure )
|
||||
tcp_analyzer->EnqueueConnEvent(contents_file_write_failure,
|
||||
IntrusivePtr{AdoptRef{}, Endpoint()->Conn()->BuildConnVal()},
|
||||
Endpoint()->Conn()->ConnVal(),
|
||||
val_mgr->Bool(IsOrig()),
|
||||
make_intrusive<StringVal>("TCP reassembler content write failure")
|
||||
);
|
||||
|
@ -375,7 +375,7 @@ void TCP_Reassembler::RecordGap(uint64_t start_seq, uint64_t upper_seq, BroFile*
|
|||
|
||||
if ( contents_file_write_failure )
|
||||
tcp_analyzer->EnqueueConnEvent(contents_file_write_failure,
|
||||
IntrusivePtr{AdoptRef{}, Endpoint()->Conn()->BuildConnVal()},
|
||||
Endpoint()->Conn()->ConnVal(),
|
||||
val_mgr->Bool(IsOrig()),
|
||||
make_intrusive<StringVal>("TCP reassembler gap write failure")
|
||||
);
|
||||
|
@ -455,7 +455,7 @@ void TCP_Reassembler::Overlap(const u_char* b1, const u_char* b2, uint64_t n)
|
|||
BroString* b2_s = new BroString((const u_char*) b2, n, false);
|
||||
|
||||
tcp_analyzer->EnqueueConnEvent(rexmit_inconsistency,
|
||||
IntrusivePtr{AdoptRef{}, tcp_analyzer->BuildConnVal()},
|
||||
tcp_analyzer->ConnVal(),
|
||||
make_intrusive<StringVal>(b1_s),
|
||||
make_intrusive<StringVal>(b2_s),
|
||||
make_intrusive<StringVal>(flags.AsString())
|
||||
|
@ -611,7 +611,7 @@ void TCP_Reassembler::DeliverBlock(uint64_t seq, int len, const u_char* data)
|
|||
|
||||
if ( deliver_tcp_contents )
|
||||
tcp_analyzer->EnqueueConnEvent(tcp_contents,
|
||||
IntrusivePtr{AdoptRef{}, tcp_analyzer->BuildConnVal()},
|
||||
tcp_analyzer->ConnVal(),
|
||||
val_mgr->Bool(IsOrig()),
|
||||
val_mgr->Count(seq),
|
||||
make_intrusive<StringVal>(len, (const char*) data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue