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: Sun, 2 Feb 2003 20:00:55 -0600 (CST)
tpot        2003/02/02 20:00:54 CST

  Modified files:
    .                    packet-dcerpc-nt.c packet-dcerpc-nt.h 
  Log:
  Replace the confusing collection of Windows DCERPC string handling
  functions with something a little less confusing.
  
  We now have two sets of functions to dissect strings:
  
   - dissect_ndr_wchar_array() which dissects NDR arrays of wide characters
     (uint32, uint32, uint32, buffer)
  
   - dissect_ndr_counted_string() which dissects a "counted string"
     (uint16, uint16, pointer to array of wchar)
  
  There are three contexts for dissecting counted strings:
  
   1. "in-line" using dissect_ndr_counted_string()
   2. as a callback to dissect_ndr_pointer()
   3. as a callback to dissect_ndr_pointer_cb()
  
  Context 2 is used when you have a pointer to a counted string.
  Context 3 is when you wish to perform some special processing with the
  returned string.
  
  Revision  Changes    Path
  1.62      +175 -199  ethereal/packet-dcerpc-nt.c
  1.38      +20 -27    ethereal/packet-dcerpc-nt.h