Ethereal-dev: Re: [ethereal-dev] Socks dissector

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 22 Feb 2000 14:52:04 -0800 (PST)
> 1) Is there a method to re-initialize a dissector ?

Yes.

Create a routine that takes no arguments and returns no errors, e.g. 
"static void socks_reinit(void)", and, in the register routine for the
dissector, do

	register_init_routine(&socks_reinit);

That routine will be called when a new capture is opened (either as a
file to be read, or as a live capture file).