Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk main.c packet_win.c proto_draw.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: Sat, 9 Sep 2000 05:27:14 -0500 (CDT)
guy         2000/09/09 05:27:10 CDT

  Modified files:
    gtk                  main.c packet_win.c proto_draw.c 
                         proto_draw.h 
  Log:
  "redraw_hex_dump()" can't use "cfile.pd" or "cfile.current_frame", as it
  may be redrawing a packet window that displays a frame other than the
  current frame; give it arguments to specify the raw frame data and
  "frame_data" structure for the frame.
  
  This requires that each packet window have, associated with it, a
  pointer to the "frame_data" structure; that replaces the "cap_len" and
  "encoding" fields in a "PacketWinData" structure, as those are just
  copies of fields from the frame's "frame_data" structure.
  
  "packet_hex_print()" needn't be passed both the start and length values
  from a "field_info" structure - just pass it a pointer to that
  structure, or NULL for "no field is selected in the packet".  It also
  needn't, any longer, be passed the "cap_len" and "flags.encoding" fields
  of a "frame_data" structure - just pass it a pointer to that structure.
  
  In "redraw_hex_dump_all()", don't redraw the hex dump pane of the main
  window if there is no current frame.
  
  Revision  Changes    Path
  1.156     +5 -5      ethereal/gtk/main.c
  1.15      +11 -14    ethereal/gtk/packet_win.c
  1.21      +25 -23    ethereal/gtk/proto_draw.c
  1.10      +4 -3      ethereal/gtk/proto_draw.h