Ethereal-dev: [ethereal-dev] Filter Colorization patch(es)

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

From: John McDermott <jjm@xxxxxxxxxx>
Date: Mon, 23 Aug 1999 10:49:53 -0600
Here is the filter colorization stuff as it stands today.  It allows:
Loading and saving of filters.
Arbitrary foreground and background colors for any protocol filter you
  can write with Gilbert's dfilters.
(Hopefully) unlimited number of filters.
Filters are processed in a list from top to bottom so if you have:
IP on one line then TCP on the next, the TCP one will be used if the
packet is IP/TCP.

This is my first non-minimal gtk effort so I may have some gtk related
problems.  If so, let me know how to fix them, please :-).  Feel free to
make the buttons look nicer (please!).  The code may also need some
general cleaning up: I decided to send it out as soon as I could so
everyone could play with it.  [It works with all the protocols with
which I've tested it.  I know of no functional problems.]  I know that
there are some excess variables which can be optimized out, etc.  But
there may still need to be changes made. I did leave a little debug
printing in ifdefs in file.c.  It can come out real soon, but with the
recent frequent changes to file.c, I thought I'd leave them.

Many thanks to Gilbert for his changes to dfilters to make this all work
correctly.

There are two new files colors.c and colors.h and some diffs (from cvs
diff) attached.  I have also included a small sample color filter file
(~/.ethereal/colorfilters) for you to use if you want to see how the
file works on your first try.  [When you make this, don't forget to add
colors.o, colors.c and colors.h to the Makefile.]

To use the colorization stuff, go to Display|Colorize Display and
edit/delete/create filters.


--john

The attached color_patches.tgz file contains the diffs, colors.c,
colors.h and colorfilters [for you to put in ~root/.ethereal].

-- 
John McDermott jjm@xxxxxxxxxx
Writer and Computer Consultant
J-K International, Ltd.
+1 505/377-6293 - V
+1 505/377-6313 - F

Attachment: color_patches.tgz
Description: application/compressed