Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-dcerpc-nt.c packet-dcerpc-nt.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Tim Potter <tpot@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Jan 2003 00:27:02 -0600 (CST)
tpot        2003/01/28 00:27:02 CST

  Modified files:
    .                    packet-dcerpc-nt.c packet-dcerpc-nt.h 
  Log:
  Defined a useful callback function for dissect_ndr_pointer() which can
  be used to help out in most DCERPC strings.  The cb_str_postprocess()
  function reads the callback_args and either appends the value of the
  string to the COL_INFO field, appends it to the NDR pointer item, or
  saves the string to dcv->private_data.  Calling cb_str_postprocess()
  with CB_STR_ITEM is the same as calling dissect_ndr_pointer() with
  levels = 0.
  
  Renamed some of the pointer dissection functions with a suffix of _cb
  and created helpers of the original which call the _cb function with
  NULL args.  This should help minimise the amount of code changes in
  the bulk of the DCERPC dissectors.
  
  Revision  Changes    Path
  1.56      +97 -49    ethereal/packet-dcerpc-nt.c
  1.36      +41 -8     ethereal/packet-dcerpc-nt.h