Ethereal-dev: [Ethereal-dev] Minor patch for CoSine L2 debug dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Thu, 27 Jan 2005 11:24:07 +0900 (JST)
Hi,

Please find attached a small patch for CoSine L2 debug dissector. The
code used to incorrectly select the first 4 octets in the tvbuff. This
patch fixes this problem. Thanks.

Regards,

Motonori Shindo

Index: epan/dissectors/packet-cosine.c
===================================================================
--- epan/dissectors/packet-cosine.c	(revision 13172)
+++ epan/dissectors/packet-cosine.c	(working copy)
@@ -74,7 +74,7 @@
   /* populate a tree in the second pane with the status of the link
      layer (ie none) */
   if(tree) {
-    ti = proto_tree_add_protocol_format(tree, proto_cosine, tvb, 0, 4,
+    ti = proto_tree_add_protocol_format(tree, proto_cosine, tvb, 0, 0,
 					"CoSine IPNOS L2 debug output (%s)",
 					pseudo_header->cosine.if_name);
     fh_tree = proto_item_add_subtree(ti, ett_raw);