mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Moving type declarations into its own bif file
This commit is contained in:
parent
f79ea244fa
commit
d95ac54579
6 changed files with 57 additions and 51 deletions
|
@ -1,6 +1,7 @@
|
|||
# $Id: bro.init 6887 2009-08-20 05:17:33Z vern $
|
||||
|
||||
@load const.bif.bro
|
||||
@load types.bif.bro
|
||||
|
||||
global bro_signal: event(signal: count);
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@ set(BIF_SRCS
|
|||
bro.bif
|
||||
event.bif
|
||||
const.bif
|
||||
types.bif
|
||||
common-rw.bif
|
||||
finger-rw.bif
|
||||
ident-rw.bif
|
||||
|
|
|
@ -261,6 +261,7 @@ RecordType* script_id;
|
|||
TableType* id_table;
|
||||
|
||||
#include "const.bif.netvar_def"
|
||||
#include "types.bif.netvar_def"
|
||||
#include "event.bif.netvar_def"
|
||||
|
||||
void init_event_handlers()
|
||||
|
@ -316,6 +317,7 @@ void init_general_global_var()
|
|||
void init_net_var()
|
||||
{
|
||||
#include "const.bif.netvar_init"
|
||||
#include "types.bif.netvar_init"
|
||||
|
||||
conn_id = internal_type("conn_id")->AsRecordType();
|
||||
endpoint = internal_type("endpoint")->AsRecordType();
|
||||
|
|
|
@ -271,6 +271,7 @@ extern void init_event_handlers();
|
|||
extern void init_net_var();
|
||||
|
||||
#include "const.bif.netvar_h"
|
||||
#include "types.bif.netvar_h"
|
||||
#include "event.bif.netvar_h"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -44,54 +44,3 @@ const dump_selected_source_packets = F &redef;
|
|||
# (TODO: this variable should be disabled when using '-A' option)
|
||||
const dump_original_packets_if_not_rewriting = F &redef;
|
||||
|
||||
enum dce_rpc_ptype %{
|
||||
DCE_RPC_REQUEST,
|
||||
DCE_RPC_PING,
|
||||
DCE_RPC_RESPONSE,
|
||||
DCE_RPC_FAULT,
|
||||
DCE_RPC_WORKING,
|
||||
DCE_RPC_NOCALL,
|
||||
DCE_RPC_REJECT,
|
||||
DCE_RPC_ACK,
|
||||
DCE_RPC_CL_CANCEL,
|
||||
DCE_RPC_FACK,
|
||||
DCE_RPC_CANCEL_ACK,
|
||||
DCE_RPC_BIND,
|
||||
DCE_RPC_BIND_ACK,
|
||||
DCE_RPC_BIND_NAK,
|
||||
DCE_RPC_ALTER_CONTEXT,
|
||||
DCE_RPC_ALTER_CONTEXT_RESP,
|
||||
DCE_RPC_SHUTDOWN,
|
||||
DCE_RPC_CO_CANCEL,
|
||||
DCE_RPC_ORPHANED,
|
||||
%}
|
||||
|
||||
enum dce_rpc_if_id %{
|
||||
DCE_RPC_unknown_if,
|
||||
DCE_RPC_epmapper,
|
||||
DCE_RPC_lsarpc,
|
||||
DCE_RPC_lsa_ds,
|
||||
DCE_RPC_mgmt,
|
||||
DCE_RPC_netlogon,
|
||||
DCE_RPC_samr,
|
||||
DCE_RPC_srvsvc,
|
||||
DCE_RPC_spoolss,
|
||||
DCE_RPC_drs,
|
||||
DCE_RPC_winspipe,
|
||||
DCE_RPC_wkssvc,
|
||||
DCE_RPC_oxid,
|
||||
DCE_RPC_ISCMActivator,
|
||||
%}
|
||||
|
||||
enum rpc_status %{
|
||||
RPC_SUCCESS,
|
||||
RPC_PROG_UNAVAIL,
|
||||
RPC_PROG_MISMATCH,
|
||||
RPC_PROC_UNAVAIL,
|
||||
RPC_GARBAGE_ARGS,
|
||||
RPC_SYSTEM_ERR,
|
||||
RPC_TIMEOUT,
|
||||
RPC_VERS_MISMATCH,
|
||||
RPC_AUTH_ERROR,
|
||||
RPC_UNKNOWN_ERROR,
|
||||
%}
|
||||
|
|
52
src/types.bif
Normal file
52
src/types.bif
Normal file
|
@ -0,0 +1,52 @@
|
|||
|
||||
enum dce_rpc_ptype %{
|
||||
DCE_RPC_REQUEST,
|
||||
DCE_RPC_PING,
|
||||
DCE_RPC_RESPONSE,
|
||||
DCE_RPC_FAULT,
|
||||
DCE_RPC_WORKING,
|
||||
DCE_RPC_NOCALL,
|
||||
DCE_RPC_REJECT,
|
||||
DCE_RPC_ACK,
|
||||
DCE_RPC_CL_CANCEL,
|
||||
DCE_RPC_FACK,
|
||||
DCE_RPC_CANCEL_ACK,
|
||||
DCE_RPC_BIND,
|
||||
DCE_RPC_BIND_ACK,
|
||||
DCE_RPC_BIND_NAK,
|
||||
DCE_RPC_ALTER_CONTEXT,
|
||||
DCE_RPC_ALTER_CONTEXT_RESP,
|
||||
DCE_RPC_SHUTDOWN,
|
||||
DCE_RPC_CO_CANCEL,
|
||||
DCE_RPC_ORPHANED,
|
||||
%}
|
||||
|
||||
enum dce_rpc_if_id %{
|
||||
DCE_RPC_unknown_if,
|
||||
DCE_RPC_epmapper,
|
||||
DCE_RPC_lsarpc,
|
||||
DCE_RPC_lsa_ds,
|
||||
DCE_RPC_mgmt,
|
||||
DCE_RPC_netlogon,
|
||||
DCE_RPC_samr,
|
||||
DCE_RPC_srvsvc,
|
||||
DCE_RPC_spoolss,
|
||||
DCE_RPC_drs,
|
||||
DCE_RPC_winspipe,
|
||||
DCE_RPC_wkssvc,
|
||||
DCE_RPC_oxid,
|
||||
DCE_RPC_ISCMActivator,
|
||||
%}
|
||||
|
||||
enum rpc_status %{
|
||||
RPC_SUCCESS,
|
||||
RPC_PROG_UNAVAIL,
|
||||
RPC_PROG_MISMATCH,
|
||||
RPC_PROC_UNAVAIL,
|
||||
RPC_GARBAGE_ARGS,
|
||||
RPC_SYSTEM_ERR,
|
||||
RPC_TIMEOUT,
|
||||
RPC_VERS_MISMATCH,
|
||||
RPC_AUTH_ERROR,
|
||||
RPC_UNKNOWN_ERROR,
|
||||
%}
|
Loading…
Add table
Add a link
Reference in a new issue