Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-v120.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: Thu, 16 Mar 2000 23:21:55 -0600 (CST)
guy         2000/03/16 23:21:52 CST

  Modified files:
    .                    packet-v120.c 
  Log:
  Change the type of the "v120.control" protocol field from FT_STRING to
  FT_UINT16; the xDLC code requires control fields to be FT_UINTn, as it
  uses "proto_tree_add_uint_format()" to add that field to the protocol
  tree.
  
  Always pass TRUE as the "is_extended" argument to
  "dissect_xdlc_control()" - the V.120 spec says "The data link control
  sublayer provides the procedures and formats of fields for data link
  layer peer-to-peer communication.  ...  For formats and the elements of
  procedures, see Recommendation Q.922", and Q.922 seems to at least allow
  for modulo 128 operation; it also speaks of SABME, as does V.120, and I
  *think* the "extended" in "Set asynchronous balanced mode extended"
  means "modulo 128".
  
  Dissect the terminal adaptation sublayer header field after dissecting
  the control field, so that the V.120 tree shows the data in sequential
  order.
  
  Calculates the length of the V.120 header based on the control field
  type (using the "XDLC_CONTROL_LEN()" macro) and the length of the
  terminal adaptation sublayer header ("dissect_v120_header()" now returns
  the length of what it dissects).
  
  Call "dissect_data()" on the V.120 payload, so you at least know how
  much data there is, and can click on an item to see it highlighted.
  
  Revision  Changes    Path
  1.5       +21 -14    ethereal/packet-v120.c