Added a private data member to the dcerpc_info structure. This second

level of private data turns out to be needed to pass something other than
an int to dcerpc_dissect_fnct_t functions passed to dissect_ndr_pointer.

A nicer way of doing this would be to convert the levels parameter to a
void *state type of variable but this turns out to be a lot more work as
opposed to a one line change here.  (-:

svn path=/trunk/; revision=5434
This commit is contained in:
Tim Potter 2002-05-10 02:30:22 +00:00
parent 41cc7f0707
commit 8b5ff6898b
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/* packet-dcerpc.h
* Copyright 2001, Todd Sabin <tas@webspan.net>
*
* $Id: packet-dcerpc.h,v 1.14 2002/05/07 10:07:55 sahlberg Exp $
* $Id: packet-dcerpc.h,v 1.15 2002/05/10 02:30:22 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -209,6 +209,7 @@ typedef struct _dcerpc_info {
int hf_index;
int levels; /* number of levels upwards in the tree to append text*/
dcerpc_call_value *call_data;
void *private_data;
} dcerpc_info;
#endif /* packet-dcerpc.h */