mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Use namespaces for NetVar type pointers.
Enums defined in bifs and records declared in bifs are now available in the C++ layer in namespaces (before they were in the global namespace with enum_* and rectype_* prefixes). Namespaces are now BroTypePtr::Enum::<name-of-enum> and BroTypePtr::Record::<name-of-record>
This commit is contained in:
parent
43a84866a0
commit
9c39abffef
4 changed files with 10 additions and 10 deletions
|
@ -234,7 +234,7 @@ void DCE_RPC_Session::DeliverPDU(int is_orig, int len, const u_char* data)
|
|||
val_list* vl = new val_list;
|
||||
vl->append(analyzer->BuildConnVal());
|
||||
vl->append(new Val(is_orig, TYPE_BOOL));
|
||||
vl->append(new EnumVal(data[2], enum_dce_rpc_ptype));
|
||||
vl->append(new EnumVal(data[2], BroTypePtr::Enum::dce_rpc_ptype));
|
||||
vl->append(new StringVal(len, (const char*) data));
|
||||
|
||||
analyzer->ConnectionEvent(dce_rpc_message, vl);
|
||||
|
@ -296,7 +296,7 @@ void DCE_RPC_Session::DeliverBind(const binpac::DCE_RPC_Simple::DCE_RPC_PDU* pdu
|
|||
val_list* vl = new val_list;
|
||||
vl->append(analyzer->BuildConnVal());
|
||||
vl->append(new StringVal(if_uuid.to_string()));
|
||||
// vl->append(new EnumVal(if_id, enum_dce_rpc_if_id));
|
||||
// vl->append(new EnumVal(if_id, BroTypePtr::Enum::dce_rpc_if_id));
|
||||
|
||||
analyzer->ConnectionEvent(dce_rpc_bind, vl);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue