mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Refactor: BifTypePtr --> BifType
As per our mail discussion renaming BifTypePtr namespace to BifType.
This commit is contained in:
parent
fab11c44ee
commit
e310119ffa
4 changed files with 6 additions and 6 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;
|
val_list* vl = new val_list;
|
||||||
vl->append(analyzer->BuildConnVal());
|
vl->append(analyzer->BuildConnVal());
|
||||||
vl->append(new Val(is_orig, TYPE_BOOL));
|
vl->append(new Val(is_orig, TYPE_BOOL));
|
||||||
vl->append(new EnumVal(data[2], BifTypePtr::Enum::dce_rpc_ptype));
|
vl->append(new EnumVal(data[2], BifType::Enum::dce_rpc_ptype));
|
||||||
vl->append(new StringVal(len, (const char*) data));
|
vl->append(new StringVal(len, (const char*) data));
|
||||||
|
|
||||||
analyzer->ConnectionEvent(dce_rpc_message, vl);
|
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;
|
val_list* vl = new val_list;
|
||||||
vl->append(analyzer->BuildConnVal());
|
vl->append(analyzer->BuildConnVal());
|
||||||
vl->append(new StringVal(if_uuid.to_string()));
|
vl->append(new StringVal(if_uuid.to_string()));
|
||||||
// vl->append(new EnumVal(if_id, BifTypePtr::Enum::dce_rpc_if_id));
|
// vl->append(new EnumVal(if_id, BifType::Enum::dce_rpc_if_id));
|
||||||
|
|
||||||
analyzer->ConnectionEvent(dce_rpc_bind, vl);
|
analyzer->ConnectionEvent(dce_rpc_bind, vl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,7 +288,7 @@ void PortmapperInterp::Event(EventHandlerPtr f, Val* request, int status, Val* r
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vl->append(new EnumVal(status, BifTypePtr::Enum::rpc_status));
|
vl->append(new EnumVal(status, BifType::Enum::rpc_status));
|
||||||
if ( request )
|
if ( request )
|
||||||
vl->append(request);
|
vl->append(request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,9 +91,9 @@ void set_decl_name(const char *name)
|
||||||
|
|
||||||
switch ( definition_type ) {
|
switch ( definition_type ) {
|
||||||
case TYPE_DEF:
|
case TYPE_DEF:
|
||||||
decl.c_namespace_start = "namespace BifTypePtr { namespace " + type_name + "{ ";
|
decl.c_namespace_start = "namespace BifType { namespace " + type_name + "{ ";
|
||||||
decl.c_namespace_end = " } }";
|
decl.c_namespace_end = " } }";
|
||||||
decl.c_fullname = "BifTypePtr::" + type_name + "::";
|
decl.c_fullname = "BifType::" + type_name + "::";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CONST_DEF:
|
case CONST_DEF:
|
||||||
|
|
|
@ -150,7 +150,7 @@ function PortmapCallFailed(connection: RPC_Conn,
|
||||||
status: EnumRPCStatus): bool
|
status: EnumRPCStatus): bool
|
||||||
%{
|
%{
|
||||||
// BifEnum::rpc_status st = static_cast<BifEnum::rpc_status>(status);
|
// BifEnum::rpc_status st = static_cast<BifEnum::rpc_status>(status);
|
||||||
Val *st = new EnumVal(status, BifTypePtr::Enum::rpc_status);
|
Val *st = new EnumVal(status, BifType::Enum::rpc_status);
|
||||||
|
|
||||||
switch ( call->proc() ) {
|
switch ( call->proc() ) {
|
||||||
case PMAPPROC_NULL:
|
case PMAPPROC_NULL:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue