Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] cvs commit: ethereal packet-ndps.c

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 14 Oct 2002 21:33:52 -0700
On Thu, Oct 10, 2002 at 01:22:12PM -0700, Guy Harris wrote:
> Modify the SPX dissector so that it can, based on some field -
> presumably the IPX socket number - call different dissectors.
> 
> I.e.:
> 
> 	1) arrange that the IPX socket number be passed to the SPX
> 	   dissector (I'd have the IPX dissector set the "srcport" and
> 	   "destport" members of the "pinfo" structure);
> 
> 	2) give the SPX dissector an "spx.socket" dissector table,
> 	   similar to the IPX dissector's "ipx.socket" dissector table,
> 	   and have it do the same "try the lower-numbered of the two
> 	   socket numbers and then try the higher-numbered one" stuff
> 	   the IPX dissector does;
> 
> 	3) have the NDPS dissector register its socket numbers with
> 	   "spx.socket" rather than "ipx.socket".

I've checked in a change to do that; the SPX dissection code is no
longer needed in the NDPS dissector.

A side-effect of that change is that "Src port" and "Dest port" columns
in the column display will display the IPX socket number, in hex, for
IPX packets, and that the "Match" and "Prepare" menu items will work on
those columns.