Ethereal-dev: [Ethereal-dev] Consistency checks for hf_ elements

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

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 29 Aug 2005 02:21:04 +0200
One thing I've wanted to write for a while: The attached script checkhf.pl
tries to find out which hf_ variables are used inside a dissector but never
added to the hf_register_info array. It's far from perfect (lots of false
alarms) but some of the finds are real.  Put the script into the dissectors
directory and run "./checkhf.pl packet-*.c | grep ^NO" to find possibly
missing entries. Without the grep it will also report potentially unused 
array entries as well. You may give only one filename as well of course
(e.g. packet-afs.c).  Should this script be put into the tools/ directory?

 Ciao
    Joerg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.

Attachment: checkhf.pl
Description: Perl program