Make "make-reg-dotc" generate a "register_all_protocol_handoffs()"
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2000 06:17:30 +0000 (06:17 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2000 06:17:30 +0000 (06:17 +0000)
commit868f595e47acd3c961504dd4388f556cabf446c1
treecb4e40fa15b5c560beef61457ce5fa239ac6db66
parent36745724b11d4cb32cf4ba2de99ae02c9e3fbc80
Make "make-reg-dotc" generate a "register_all_protocol_handoffs()"
routine, which calls all routines found in the dissector source files
with names that match " proto_reg_handoff_[a-z_0-9A-Z]*".

Call "register_all_protocol_handoffs()" after calling
"register_all_protocols()" - "register_all_protocols()" needs to be
called first, so that all protocols can register their fields, because
registering a dissector as being called if field "proto.port" is equal
to N requires that "proto.port" be a registered field.

Give DNS a handoff registration routine, and register its dissector to
be called if "udp.port" is UDP_PORT_DNS; remove the registration of DNS
from "packet-udp.c", and make "dissect_dns()" static (as nobody else
need know that it exists).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1788 f5534014-38df-0310-8fa8-9805f1628bb7
make-reg-dotc
packet-dns.c
packet-dns.h
packet-udp.c
proto.c
register.h