Ethereal-dev: RE: [Ethereal-dev] MTP3 version autodetect (was Camel Patch)

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

From: "Jacques, Olivier (OCBU-Test Infra)" <olivier.jacques@xxxxxx>
Date: Mon, 9 May 2005 23:27:07 +0200
> I created an "SS7" preference entry, at the same level as 
> "Name resolution".
> This works nicely for MTP3/TCAP standard.
> But I have an issue with the SSN ranges for TCAP, Camel, MAP 
> and INAP dissectors. Looking at the way Ethereal initializes 
> itself, it first registers the protocols (main.c:epan_init) 
> then read the preferences (main.c:read_prefs).
> As those SS7 dissectors are based on the SSN to register 
> themselves, how can I best change the current behavior?
> 1- In main.c, read the preferences before registering the protocols?
> 2- In main.c, keep the same order (registering, then 
> preferences), and call dissector_add after preferences are read?
> 3- Something else?
> 
> I would rather do 1-, but I don't know if it will cause 
> unwanted side effects.

I tried 1-. But this doesn't work because Ethereal needs to know the
dissectors before reading their preferences!
So I guess I'll have to go for 2-

I would like that one of the "main.c" maintainer confirms that this is
correct :)

Olivier.