/* 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"
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 */
&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);
}
-