Ethereal-dev: [Ethereal-dev] Registering nonstandard protocol ports w/o recompi ling
Some UDP-based protocols like WAP 1.x have a "session redirect" option
resulting in this session using another socket, resulting in the loss of
decoding (unregistered port). Today the only way of achieving this, is by
modifying the code and hard-coding the possible redirect ports into the
source code. I would like to introduce a simple but effective method to
achieve the goal above:
Use environment variables named 'Ethereal_PROTO_port_SUBPROTO' like
'Ethereal_udp_port_wtls_wsp' for this purpose. These variables are assigned
token lists containing a mix of port numbers (>0) and ranges. For
optimalization reasons the tokens are parsed and an 'int_range' object is
returned containing the number of ranges, and 2 arrays of this length with
min and max values. Each protocol requiring this approach could then keep
static information on these custom ports. Registering of ports could be
done this way too (standard ports plus added ports).
I have to clean up my code, if there's interest in this apporach I'll post
the code.
Regards,
Olivier
Olivier BIOT
Siemens Atea - Department IC D NC A (WAP)
Adres : Atealaan 34 B-2200 Herentals
E-mail : olivier.biot@xxxxxxxxxxxxxxx
Phone : +32 (14) 25 3984