Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-x11.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 12 Jun 2000 03:28:20 -0500 (CDT)
guy         2000/06/12 03:28:17 CDT

  Modified files:
    .                    packet-x11.c 
  Log:
  Partial tvbuffification of the X11 dissector; we construct a tvbuff from
  the top-level "compatibility" tvbuff, so that we don't blow up if we get
  short frames *or* misinterpret data due to, for example, trying to treat
  the initial client->server message in a connection as an X11 request, or
  interpreting the middle of a multi-frame request (e.g., a big PutImage)
  as if it contained requests.  (I have a capture file on which the
  non-tvbuffified code crashed.)
  
  Attempt to dissect requests until we reach the end of the frame, even if
  that would take us past the end of the captured data in the frame before
  we reach the end of the frame; the tvbuff code will throw an exception
  if we go past the end of the captured data, which means it'll put a
  "Short frame" indication into the protocol tree, which is what we want
  (the frame *is* short, because the capture length was too short).
  
  Define functions taking no arguments with a "(void)" argument list, so
  that the compiler knows that they must not be passed any arguments.
  
  Revision  Changes    Path
  1.2       +320 -284  ethereal/packet-x11.c