Update dissect_ndr_nt_STRING so it can also accept FT_BYTES and for that type
[obnox/wireshark/wip.git] / packet-igrp.c
index 7bf8dc5daa0aa6f50e4a2c1a80972e921705e10f..bdde4877664a3dc2e0db6dff52fcc3c5dfab4cb8 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for IGRP dissection
  * Copyright 2000, Paul Ionescu <paul@acorp.ro>
  * 
- * $Id: packet-igrp.c,v 1.10 2001/12/10 00:25:28 guy Exp $
+ * $Id: packet-igrp.c,v 1.12 2002/01/24 09:20:48 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -35,7 +35,7 @@
 
 #include <string.h>
 #include <glib.h>
-#include "packet.h"
+#include <epan/packet.h>
 #include "ipproto.h"
 
 #define IGRP_HEADER_LENGTH 12
@@ -87,8 +87,8 @@ static void dissect_igrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   
   if (tree) {
-      ti = proto_tree_add_protocol_format(tree, proto_igrp, tvb, 0,
-        tvb_length(tvb), "Cisco IGRP ");
+      ti = proto_tree_add_protocol_format(tree, proto_igrp, tvb, 0, -1,
+        "Cisco IGRP");
         
       igrp_tree = proto_item_add_subtree(ti, ett_igrp);