Add an additional "protocol index" argument to "{old_}dissector_add()",
[obnox/wireshark/wip.git] / plugins / gryphon / packet-gryphon.c
index eebcc2212ea2e943751a5d4517e3605859abd9c1..0c9fb493ba50edb0020677ffd1b964c112814987 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-gryphon.c
  * Routines for Gryphon protocol packet disassembly
  *
- * $Id: packet-gryphon.c,v 1.16 2000/11/29 09:49:29 guy Exp $
+ * $Id: packet-gryphon.c,v 1.19 2001/01/09 06:32:08 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Steve Limkemann <stevelim@dgtech.com>
@@ -46,7 +46,6 @@
 # include <netinet/in.h>
 #endif
 #include "packet.h"
-#include "dfilter.h"
 #include "packet-gryphon.h"
 
 G_MODULE_EXPORT const gchar version[] = VERSION;
@@ -1703,7 +1702,8 @@ plugin_init(plugin_address_table_t *pat)
     plugin_address_table_init(pat);
     if (proto_gryphon == -1) {
        /* first activation */
-       proto_gryphon = proto_register_protocol("DG Gryphon Protocol", 
+       proto_gryphon = proto_register_protocol("DG Gryphon Protocol",
+                                               "Gryphon",
                                                "gryphon");
        proto_register_field_array(proto_gryphon, hf, array_length(hf));
        proto_register_subtree_array(ett, array_length(ett));
@@ -1716,5 +1716,5 @@ plugin_init(plugin_address_table_t *pat)
 G_MODULE_EXPORT void
 plugin_reg_handoff(void)
 {
-    old_dissector_add("tcp.port", 7000, &dissect_gryphon);
+    old_dissector_add("tcp.port", 7000, &dissect_gryphon, proto_gryphon);
 }