Ethereal-dev: RE: [Ethereal-dev] Can I force data into a dissector from below ?

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

From: "Michael Lum" <mlum@xxxxxxxxxxxxx>
Date: Wed, 5 Nov 2003 20:44:48 -0800
Thanks Guy, got it!

Everything works now.

> -----Original Message-----
> From: Guy Harris [mailto:guy@xxxxxxxxxxxx]
> Sent: Wednesday, November 05, 2003 12:23 PM
> To: mlum@xxxxxxxxxxxxx
> Cc: Ethereal
> Subject: Re: [Ethereal-dev] Can I force data into a dissector from below
> ?
> 
> 
> 
> On Nov 5, 2003, at 10:14 AM, Michael Lum wrote:
> 
> > Why would the following command fail to produce a pointer to the 
> > dissector?
> >
> >   sccp_handle = find_dissector("sccp");
> 
> Because the SCCP dissector doesn't register itself by name; to do so, 
> it would have to, in "proto_register_sccp()", do
> 
> 	register_dissector("sccp", dissect_sccp, proto_sccp);
> 
> (after registering the protocol and setting "proto_sccp").  If it does 
> that, "proto_reg_handoff_sccp()" should get "sccp_handle" with
> 
> 	sccp_handle = find_dissector("sccp");
> 
> rather than using "create_dissector_handle()" to create a separate 
> "anonymous" handle.