diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-11 11:48:07 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-12 20:17:35 +0000 |
commit | 5c80f08648ed14ecc03c20d8c52f25d71b03dd26 (patch) | |
tree | f931bbc8b684f15b692aa1fd009324310dd058df /epan/dissectors/packet-rpc.h | |
parent | 412f5b3716bce91d1b26a82012e5c28a611d91da (diff) |
Add DCE-RPC and ONC-RPC service response time dialogs.
Add RpcServiceResponseTimeDialog, which handles DCE-RPC and ONC-RPC
service response time statistics. Try to make it as lightweight as
possible, since we might want to pull this into the RPC dissectors
similar to the other SRT statistics.
Allow program names on the command line in place of numbers or UUIDs. Make
matches case-insensitive. E.g. the following are equivalent:
-z rpc,srt,100003,3
-z rpc,srt,nfs,3
-z rpc,srt,NFS,3
as are the following:
-z dcerpc,srt,f5cc5a18-4264-101a-8c59-08002b2f8426,56
-z dcerpc,srt,nspi,56
-z dcerpc,srt,NSPI,56
Change-Id: Ie451c64bf6fbc776f27d81e3bc248435c5cbc9e4
Reviewed-on: https://code.wireshark.org/review/9981
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-rpc.h')
-rw-r--r-- | epan/dissectors/packet-rpc.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rpc.h b/epan/dissectors/packet-rpc.h index d633bd3a20..b72112d991 100644 --- a/epan/dissectors/packet-rpc.h +++ b/epan/dissectors/packet-rpc.h @@ -29,6 +29,10 @@ #include <epan/conversation.h> #include "ws_symbol_export.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #define RPC_CALL 0 #define RPC_REPLY 1 @@ -203,12 +207,15 @@ typedef struct _rpc_prog_info_value { int proto_id; int ett; const char* progname; - GArray *procedure_hfs; + GArray *procedure_hfs; /* int */ } rpc_prog_info_value; /* rpc_progs is also used in tap. With MSVC and a * libwireshark.dll, we need a special declaration. */ +/* Key: Program number (guint32) + * Value: rpc_prog_info_value * + */ WS_DLL_PUBLIC GHashTable *rpc_progs; typedef struct _rpc_proc_info_key { @@ -225,5 +232,8 @@ typedef struct rpcstat_tap_data int num_procedures; } rpcstat_tap_data_t; -#endif /* packet-rpc.h */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* packet-rpc.h */ |