From Ulf Lamping: extend the progress dialog box to give more progress
[obnox/wireshark/wip.git] / packet-ypxfr.c
index a53a81b0641c2818ee98e596fba0a925e70985ad..e0af251f864f20dd1e77e4a1a1cd5d5f4de9717e 100644 (file)
@@ -1,10 +1,10 @@
 /* packet-ypxfr.c
  * Routines for ypxfr dissection
  *
- * $Id: packet-ypxfr.c,v 1.2 1999/11/16 11:43:04 guy Exp $
+ * $Id: packet-ypxfr.c,v 1.7 2002/08/02 23:36:05 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@unicom.net>
+ * By Gerald Combs <gerald@zing.org>
  * Copyright 1998 Gerald Combs
  *
  * Copied from packet-smb.c
 #endif
 
 
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
 
 #include "packet-rpc.h"
 #include "packet-ypxfr.h"
@@ -42,11 +38,11 @@ static int proto_ypxfr = -1;
 static gint ett_ypxfr = -1;
 
 /* proc number, "proc name", dissect_request, dissect_reply */
-/* NULL as function pointer means: take the generic one. */
-const vsff ypxfr1_proc[] = {
-       { YPXFRPROC_NULL,       "NULL",         NULL,                           NULL },
-       { YPXFRPROC_GETMAP,     "GETMAP",               NULL,                           NULL },
-       { 0,    NULL,           NULL,                           NULL }
+/* NULL as function pointer means: type of arguments is "void". */
+static const vsff ypxfr1_proc[] = {
+       { YPXFRPROC_NULL,       "NULL",         NULL,           NULL },
+       { YPXFRPROC_GETMAP,     "GETMAP",       NULL,           NULL },
+       { 0,                    NULL,           NULL,           NULL }
 };
 /* end of YPXFR version 1 */
 
@@ -57,12 +53,16 @@ proto_register_ypxfr(void)
                &ett_ypxfr
        };
 
-       proto_ypxfr = proto_register_protocol("Yellow Pages Transfer", "ypxfr");
+       proto_ypxfr = proto_register_protocol("Yellow Pages Transfer",
+           "YPXFR", "ypxfr");
        proto_register_subtree_array(ett, array_length(ett));
+}
 
+void
+proto_reg_handoff_ypxfr(void)
+{
        /* Register the protocol as RPC */
        rpc_init_prog(proto_ypxfr, YPXFR_PROGRAM, ett_ypxfr);
        /* Register the procedure tables */
        rpc_init_proc_table(YPXFR_PROGRAM, 1, ypxfr1_proc);
 }
-