diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-04 06:17:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-04 06:17:30 +0000 |
commit | 1ffa3cfa2b664a4920805cb40dd9fe85bf3ca1fe (patch) | |
tree | cb4e40fa15b5c560beef61457ce5fa239ac6db66 /packet-dns.h | |
parent | e6d47076b8f8c64f34b9f169a117836b2719da89 (diff) |
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).
svn path=/trunk/; revision=1788
Diffstat (limited to 'packet-dns.h')
-rw-r--r-- | packet-dns.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packet-dns.h b/packet-dns.h index 45777a954e..523e9a1e1b 100644 --- a/packet-dns.h +++ b/packet-dns.h @@ -2,7 +2,7 @@ * Definitions for packet disassembly structures and routines used both by * DNS and NBNS. * - * $Id: packet-dns.h,v 1.7 2000/03/30 01:52:40 guy Exp $ + * $Id: packet-dns.h,v 1.8 2000/04/04 06:17:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -40,6 +40,4 @@ add_rr_to_tree(proto_item *trr, int rr_type, int offset, const char *name, int namelen, const char *type_name, const char *class_name, u_int ttl, u_short data_len); -void dissect_dns(const u_char *, int, frame_data *, proto_tree *); - #endif /* packet-dns.h */ |