Ethereal-dev: Re: [Ethereal-dev] Patch: packet-wsp.c major rewrite

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, 2 Nov 2003 18:55:57 -0800
On Fri, Oct 31, 2003 at 08:36:05PM +0100, Biot Olivier wrote:
> As promised a looooong time ago, here's the 1st patch to the WSP dissector.
> Features:
> * Use function reference arrays for header parse function lookup (avoids
> switch())
> * Use macros for the common parts of the header parse functions
> * Use macros for identical header dissection functions
> * Implement many missing header parse functions
> * Automatic header parse error notification
> * Some minor edits

Unfortunately, it's not compiling for me (FreeBSD 3.4, GCC 2.7.2.3):

	packet-wsp.c: In function `wkh_accept':
	packet-wsp.c:2089: parse error before `off'
	packet-wsp.c:2089: `off' undeclared (first use this function)
	packet-wsp.c:2089: (Each undeclared identifier is reported only once
	packet-wsp.c:2089: for each function it appears in.)
	packet-wsp.c:2089: `peek' undeclared (first use this function)
	packet-wsp.c:2089: `len' undeclared (first use this function)
	packet-wsp.c:2089: `val' undeclared (first use this function)
	packet-wsp.c:2089: `parameter_tree' undeclared (first use this function)

even with your second patch applied.  I'll look into it, time permitting
- but time doesn't permit right now, as I'm about to head out the door
to dinner and a movie; I might get to look at it later tonight.

Gerald, what's your schedule for 0.9.16?