Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal dfilter.c ethereal.c file.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: Sun, 11 Jul 1999 03:40:58 -0500 (CDT)
guy         1999/07/11 03:40:56 CDT

  Modified files:
    .                    dfilter.c ethereal.c file.c 
  Log:
  When you hit <Return> in the text entry box for the display filter,
  apply the filter (if it isn't invalid).
  
  Apply the filter by clearing the Clist that shows packet summary lines
  and scanning through the list of all packets and adding to the Clist
  those that match the filter.
  
  Get rid of "if (dfilter_proto_tree)" test in "load_cap_file()";
  "dfilter_proto_tree" is always FALSE, and all the test does is keep us
  from doing a "gtk_clist_freeze()" of the packet list, and we don't want
  to do that (we don't want the packet to be updated until we're done
  reading in the file).
  
  Get rid of "dfilter_proto_tree", as it's no longer used.
  
  Move the test that checks whether the display filter matches the current
  packet to "add_packet_to_packet_list()"; this allows us to run
  "dissect_packet()" only once - if we have a display filter, we generate
  the summary info *and* the protocol tree in the same call, using the
  summary info to make the packet list item and the protocol tree when
  checking the display filter.
  
  In "dfilter_compile()", destroy "*p_dfcode" if it's not NULL, so we
  don't leak memory.
  
  Revision  Changes    Path
  1.4       +4 -1      ethereal/dfilter.c
  1.52      +14 -2     ethereal/ethereal.c
  1.36      +72 -36    ethereal/file.c