Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-cops.c packet-dns.c packet-dsi.c pack
guy 2002/05/04 19:16:34 CDT
Modified files:
. packet-cops.c packet-dns.c packet-dsi.c
packet-skinny.c packet-tcp.c packet-tcp.h
Log:
Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly. Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.
Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.
Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.
Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.
Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.
Revision Changes Path
1.30 +14 -111 ethereal/packet-cops.c
1.85 +30 -113 ethereal/packet-dns.c
1.19 +20 -112 ethereal/packet-dsi.c
1.18 +21 -102 ethereal/packet-skinny.c
1.140 +138 -3 ethereal/packet-tcp.c
1.10 +24 -1 ethereal/packet-tcp.h