Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal make-reg-dotc packet-dns.c packet-dns.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 4 Apr 2000 01:17:36 -0500 (CDT)
guy         2000/04/04 01:17:34 CDT

  Modified files:
    .                    make-reg-dotc packet-dns.c packet-dns.h 
                         packet-udp.c proto.c register.h 
  Log:
  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).
  
  Revision  Changes    Path
  1.2       +18 -0     ethereal/make-reg-dotc
  1.41      +11 -2     ethereal/packet-dns.c
  1.8       +1 -3      ethereal/packet-dns.h
  1.57      +1 -4      ethereal/packet-udp.c
  1.59      +8 -2      ethereal/proto.c
  1.2       +2 -1      ethereal/register.h