aboutsummaryrefslogtreecommitdiffstats
path: root/packet-enip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-02 21:17:31 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-02 21:17:31 +0000
commit42c646eeb4bd6fd6fd28447230fbbc1299e1f332 (patch)
tree819393dc3f1e065a7647d7899483f85323046f0b /packet-enip.c
parent5f0c445718c2ffb320d743fcddeb527726e603b4 (diff)
From Joakim Wiberg: change additional status display to word array
instead of byte array. svn path=/trunk/; revision=8339
Diffstat (limited to 'packet-enip.c')
-rw-r--r--packet-enip.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/packet-enip.c b/packet-enip.c
index eff8b3ac6e..99c7500a1b 100644
--- a/packet-enip.c
+++ b/packet-enip.c
@@ -6,7 +6,7 @@
* Magnus Hansson <mah@hms.se>
* Joakim Wiberg <jow@hms.se>
*
- * $Id: packet-enip.c,v 1.4 2003/08/16 01:53:41 guy Exp $
+ * $Id: packet-enip.c,v 1.5 2003/09/02 21:17:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1262,7 +1262,12 @@ add_cip_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, int item_length
if( add_stat_size )
{
/* Add additional status */
- add_byte_array_text_to_proto_tree( item_tree, tvb, offset+4, add_stat_size, "Additional Status: " );
+ pi = proto_tree_add_text( item_tree, tvb, offset+4, add_stat_size, "Additional Status:" );
+
+ for( i=0; i < add_stat_size/2; i ++ )
+ {
+ proto_item_append_text( pi, " 0x%04X", tvb_get_letohs( tvb, offset+4+(i*2) ) );
+ }
}
/* If there is any command specific data create a sub-tree for it */