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: Wed, 4 May 2005 14:11:07 +0200
> > Here are the preferences I plan to include in this SS7 panel:
> >
> /*MTP2 Use extended sequence numbers */
> > /* MTP3 Std */
> > /* TCAP Std */
> > /* TCAP SSNs */
> > /* Camel SSNs */
> > /* GSM MAP SSNs */
> > /* INAP SSNs */

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.

Advices appreciated :)

Olivier.