guy 2003/11/16 17:17:24 CST
Modified files:
. Makefile.am disabled_protos.c
packet-alcap.c packet-ansi_637.c
packet-ansi_683.c packet-ansi_a.c
packet-ansi_map.c packet-atalk.c
packet-clnp.c packet-dcerpc.c
packet-dcerpc.h packet-dvmrp.c
packet-fcip.c packet-giop.c packet-giop.h
packet-gsm_a.c packet-gsm_sms.c
packet-gssapi.c packet-gssapi.h
packet-iscsi.c packet-mrdisc.c
packet-msnip.c packet-pim.c packet-ppp.c
packet-rpc.c packet-rpc.h
packet-smb-browse.c packet-smb-browse.h
packet-smb-logon.c packet-smb-mailslot.c
packet-smb-pipe.c packet-snmp.c
packet-tpkt.c prefs.c
Removed files:
. packet-smb-logon.h
Log:
Export "protocol_t" as an opaque type.
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()"
take a "protocol_t *" as an argument, so they don't have to look up the
"protocol_t" - this will probably speed them up considerably, and
they're called on almost every dissector handoff.
Get rid of a number of "proto_is_protocol_enabled()" calls that aren't
necessary (dissectors called through handles, including those called
through dissector tables, or called as heuristic dissectors, aren't even
called if their protocol isn't enabled).
Change some direct dissector calls to go through handles.
Revision Changes Path
1.653 +1 -2 ethereal/Makefile.am
1.3 +4 -2 ethereal/disabled_protos.c
1.4 +1 -7 ethereal/packet-alcap.c
1.3 +1 -13 ethereal/packet-ansi_637.c
1.3 +1 -7 ethereal/packet-ansi_683.c
1.10 +1 -15 ethereal/packet-ansi_a.c
1.10 +1 -7 ethereal/packet-ansi_map.c
1.91 +10 -9 ethereal/packet-atalk.c
1.79 +2 -2 ethereal/packet-clnp.c
1.155 +5 -4 ethereal/packet-dcerpc.c
1.37 +3 -2 ethereal/packet-dcerpc.h
1.14 +2 -2 ethereal/packet-dvmrp.c
1.9 +1 -4 ethereal/packet-fcip.c
1.73 +3 -3 ethereal/packet-giop.c
1.11 +2 -2 ethereal/packet-giop.h
1.6 +1 -19 ethereal/packet-gsm_a.c
1.4 +1 -7 ethereal/packet-gsm_sms.c
1.28 +2 -2 ethereal/packet-gssapi.c
1.9 +2 -2 ethereal/packet-gssapi.h
1.48 +1 -4 ethereal/packet-iscsi.c
1.10 +2 -2 ethereal/packet-mrdisc.c
1.9 +2 -2 ethereal/packet-msnip.c
1.46 +2 -2 ethereal/packet-pim.c
1.117 +11 -21 ethereal/packet-ppp.c
1.139 +11 -6 ethereal/packet-rpc.c
1.44 +3 -2 ethereal/packet-rpc.h
1.33 +8 -15 ethereal/packet-smb-browse.c
1.7 +1 -7 ethereal/packet-smb-browse.h
1.35 +4 -8 ethereal/packet-smb-logon.c
1.34 +14 -6 ethereal/packet-smb-mailslot.c
1.97 +3 -3 ethereal/packet-smb-pipe.c
1.123 +2 -2 ethereal/packet-snmp.c
1.23 +2 -2 ethereal/packet-tpkt.c
1.113 +8 -3 ethereal/prefs.c