* Routines for DCOM Remote Activation
* Copyright 2001, Todd Sabin <tas@webspan.net>
*
- * $Id: packet-dcerpc-remact.c,v 1.3 2002/01/21 07:36:33 guy Exp $
+ * $Id: packet-dcerpc-remact.c,v 1.8 2003/08/04 02:49:02 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#endif
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#include <string.h>
#include <glib.h>
static int proto_remact = -1;
+static int hf_opnum = -1;
+
static gint ett_remact = -1;
void
proto_register_remact (void)
{
-#if 0
static hf_register_info hf[] = {
+ { &hf_opnum,
+ { "Operation", "remact.opnum", FT_UINT16, BASE_DEC,
+ NULL, 0x0, "", HFILL }},
};
-#endif
static gint *ett[] = {
- &ett_remact,
+ &ett_remact
};
proto_remact = proto_register_protocol ("DCOM Remote Activation", "REMACT", "remact");
-#if 0
proto_register_field_array (proto_remact, hf, array_length (hf));
-#endif
proto_register_subtree_array (ett, array_length (ett));
}
proto_reg_handoff_remact (void)
{
/* Register the protocol as dcerpc */
- dcerpc_init_uuid (proto_remact, ett_remact, &uuid_remact, ver_remact, remact_dissectors);
+ dcerpc_init_uuid (proto_remact, ett_remact, &uuid_remact, ver_remact, remact_dissectors, hf_opnum);
}