mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Deprecate names in BifConst, replace with zeek::BifConst
Some Val* types are also replaced with IntrusivePtr at the new location
This commit is contained in:
parent
eedeb07550
commit
0db5c920f2
39 changed files with 120 additions and 106 deletions
|
@ -302,15 +302,15 @@ StringVal* NFS_Interp::nfs3_file_data(const u_char*& buf, int& n, uint64_t offse
|
|||
const u_char *data = extract_XDR_opaque(buf, n, data_n, 1 << 30, true);
|
||||
|
||||
// check whether we have to deliver data to the event
|
||||
if ( ! BifConst::NFS3::return_data )
|
||||
if ( ! zeek::BifConst::NFS3::return_data )
|
||||
return nullptr;
|
||||
|
||||
if ( BifConst::NFS3::return_data_first_only && offset != 0 )
|
||||
if ( zeek::BifConst::NFS3::return_data_first_only && offset != 0 )
|
||||
return nullptr;
|
||||
|
||||
// Ok, so we want to return some data
|
||||
data_n = std::min(data_n, size);
|
||||
data_n = std::min(data_n, int(BifConst::NFS3::return_data_max));
|
||||
data_n = std::min(data_n, int(zeek::BifConst::NFS3::return_data_max));
|
||||
|
||||
if ( data && data_n > 0 )
|
||||
return new StringVal(new BroString(data, data_n, false));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue