aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-tapi.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-11-06 14:31:29 +0000
committerMichael Mann <mmann78@netscape.net>2013-11-06 14:31:29 +0000
commit22760b2d2a065249b21b7cf4be892aba71827279 (patch)
treed2806f1e93d9d29d1d042185340a27fd23eaf296 /epan/dissectors/packet-dcerpc-tapi.c
parent440ac8370fae681dd2e55c669226720b12491481 (diff)
Remove pinfo->private_data from DCERPC dissectors and instead have dcerpc_info* infomation be passed in as a function parameter. Bug 9387 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9387)
All "generated" source was manually modified (with the power of search/replace), but I believe the "source input" files have been adjusted (checked into revs 53098 and 53099) to reflect the necessary changes (with possible whitespace formatting differences). The Microsoft compiler doesn't flag "unused function parameters", so I apologize in advance if I may have missed a few. The "dcerpc_info* di" parameter is used in almost every function. svn path=/trunk/; revision=53100
Diffstat (limited to 'epan/dissectors/packet-dcerpc-tapi.c')
-rw-r--r--epan/dissectors/packet-dcerpc-tapi.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/epan/dissectors/packet-dcerpc-tapi.c b/epan/dissectors/packet-dcerpc-tapi.c
index d02ca33159..a3840c55f0 100644
--- a/epan/dissectors/packet-dcerpc-tapi.c
+++ b/epan/dissectors/packet-dcerpc-tapi.c
@@ -71,16 +71,16 @@ static guint16 ver_dcerpc_tapi = 1;
static int
dissect_tapi_client_attach_rqst(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
- guint8 *drep)
+ dcerpc_info *di, guint8 *drep)
{
- offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep,
hf_tapi_unknown_long, NULL);
- offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, di, drep,
NDR_POINTER_REF, "unknown string",
hf_tapi_unknown_string, 0);
- offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, di, drep,
NDR_POINTER_REF, "unknown string",
hf_tapi_unknown_string, 0);
@@ -89,15 +89,15 @@ dissect_tapi_client_attach_rqst(tvbuff_t *tvb, int offset,
static int
dissect_tapi_client_attach_reply(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
- guint8 *drep)
+ dcerpc_info *di, guint8 *drep)
{
- offset = dissect_ndr_ctx_hnd(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_ctx_hnd(tvb, offset, pinfo, tree, di, drep,
hf_tapi_hnd, NULL);
- offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep,
hf_tapi_unknown_long, NULL);
- offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep,
hf_tapi_rc, NULL);
return offset;
@@ -113,14 +113,11 @@ dissect_tapi_client_attach_reply(tvbuff_t *tvb, int offset,
static int
dissect_tapi_TYPE_1(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
- guint8 *drep)
+ dcerpc_info *di, guint8 *drep)
{
- dcerpc_info *di;
-
- di=(dcerpc_info *)pinfo->private_data;
if(di->conformant_run){
/* this call is to make wireshark eat the array header for the conformant run */
- offset =dissect_ndr_ucvarray(tvb, offset, pinfo, tree, drep, NULL);
+ offset =dissect_ndr_ucvarray(tvb, offset, pinfo, tree, di, drep, NULL);
return offset;
}
@@ -135,16 +132,16 @@ dissect_tapi_TYPE_1(tvbuff_t *tvb, int offset,
static int
dissect_tapi_client_request_rqst(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
- guint8 *drep)
+ dcerpc_info *di, guint8 *drep)
{
- offset = dissect_ndr_ctx_hnd(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_ctx_hnd(tvb, offset, pinfo, tree, di, drep,
hf_tapi_hnd, NULL);
- offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, di, drep,
dissect_tapi_TYPE_1, NDR_POINTER_REF,
"unknown array", -1);
- offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep,
hf_tapi_unknown_long, NULL);
return offset;
@@ -152,9 +149,9 @@ dissect_tapi_client_request_rqst(tvbuff_t *tvb, int offset,
static int
dissect_tapi_client_request_reply(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
- guint8 *drep)
+ dcerpc_info *di, guint8 *drep)
{
- offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep,
hf_tapi_rc, NULL);
return offset;
@@ -169,14 +166,14 @@ dissect_tapi_client_request_reply(tvbuff_t *tvb, int offset,
static int
dissect_tapi_client_detach_rqst(tvbuff_t *tvb _U_, int offset _U_,
packet_info *pinfo _U_, proto_tree *tree _U_,
- guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
return offset;
}
static int
dissect_tapi_client_detach_reply(tvbuff_t *tvb _U_, int offset _U_,
packet_info *pinfo _U_, proto_tree *tree _U_,
- guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
return offset;
}