Add an additional "protocol index" argument to "{old_}dissector_add()",
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 9 Jan 2001 06:32:10 +0000 (06:32 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 9 Jan 2001 06:32:10 +0000 (06:32 +0000)
commita2e2dd78a3bfe730f3ffbcee258923f45bd5c27c
tree64e405774b7cf4b6cc4f247aea0c3c3651aeef53
parenta1f75fe99c63add12c6dca8d8c0bc31435568dfa
Add an additional "protocol index" argument to "{old_}dissector_add()",
"{old_}heur_dissector_add()", "{old_}conv_dissector_add()", and
"register_dissector()", so that an entry in those tables has associated
with it the protocol index of the protocol the dissector handles (or -1,
if there is no protocol index for it).

This is for future use in a number of places.

(Arguably, "proto_register_protocol()" should take a dissector pointer
as an argument, but

1) it'd have to handle both regular and heuristic dissectors;

2) making it take either a "dissector_t" or a union of that and
   a "heur_dissector_t" introduces some painful header-file
   interdependencies

so I'm punting on that for now.  As with other Ethereal internal APIs,
these APIs are subject to change in the future, at least until Ethereal
1.0 comes out....)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2849 f5534014-38df-0310-8fa8-9805f1628bb7
125 files changed:
epan/packet.c
epan/packet.h
packet-aarp.c
packet-aim.c
packet-arp.c
packet-ascend.c
packet-atalk.c
packet-atm.c
packet-auto_rp.c
packet-bgp.c
packet-bootp.c
packet-bpdu.c
packet-bxxp.c
packet-cdp.c
packet-cgmp.c
packet-clip.c
packet-clnp.c
packet-cops.c
packet-ddtp.c
packet-dec-bpdu.c
packet-diameter.c
packet-dns.c
packet-eigrp.c
packet-esis.c
packet-eth.c
packet-fddi.c
packet-fr.c
packet-ftp.c
packet-giop.c
packet-gre.c
packet-h1.c
packet-hsrp.c
packet-http.c
packet-icmpv6.c
packet-icp.c
packet-icq.c
packet-ieee80211.c
packet-igrp.c
packet-imap.c
packet-ip.c
packet-ipp.c
packet-ipsec.c
packet-ipv6.c
packet-ipx.c
packet-irc.c
packet-isakmp.c
packet-isis.c
packet-isl.c
packet-kerberos.c
packet-l2tp.c
packet-lapb.c
packet-lapbether.c
packet-lapd.c
packet-ldap.c
packet-ldp.c
packet-llc.c
packet-lpd.c
packet-mapi.c
packet-mip.c
packet-mpls.c
packet-msproxy.c
packet-nbipx.c
packet-nbns.c
packet-ncp.c
packet-netbios.c
packet-nntp.c
packet-ntp.c
packet-null.c
packet-osi.c
packet-ospf.c
packet-pim.c
packet-pop.c
packet-ppp.c
packet-pppoe.c
packet-pptp.c
packet-quake.c
packet-radius.c
packet-raw.c
packet-rip.c
packet-ripng.c
packet-rlogin.c
packet-rpc.c
packet-rsh.c
packet-rsvp.c
packet-rtcp.c
packet-rtp.c
packet-rtsp.c
packet-rx.c
packet-sap.c
packet-sctp.c
packet-sdp.c
packet-sip.c
packet-sll.c
packet-smtp.c
packet-sna.c
packet-snmp.c
packet-socks.c
packet-srvloc.c
packet-syslog.c
packet-tacacs.c
packet-tcp.c
packet-telnet.c
packet-tftp.c
packet-time.c
packet-tns.c
packet-tr.c
packet-trmac.c
packet-udp.c
packet-v120.c
packet-vines.c
packet-vlan.c
packet-vrrp.c
packet-vtp.c
packet-wccp.c
packet-who.c
packet-wsp.c
packet-wtp.c
packet-x11.c
packet-x25.c
packet-xot.c
packet-yhoo.c
packet-zebra.c
plugins/gryphon/packet-gryphon.c
plugins/mgcp/packet-mgcp.c
plugins/plugin_table.h