aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-10-02 18:31:33 +0000
committerGuy Harris <guy@alum.mit.edu>2011-10-02 18:31:33 +0000
commita1b6a2e95f0005712391a68df65a5f939ec0c334 (patch)
treee01626cb130d393c21778c7c899689e1c0add5f6 /epan
parentdab27a2d3d3d28b06fa84ed06a664a151c5270f0 (diff)
"seg_size" isn't set here, and the items don't appear to have a variable
segment size, they just appear to be 2 bytes long. svn path=/trunk/; revision=39229
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-cip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-cip.c b/epan/dissectors/packet-cip.c
index f4f6c7624a..8c73907a87 100644
--- a/epan/dissectors/packet-cip.c
+++ b/epan/dissectors/packet-cip.c
@@ -2848,16 +2848,16 @@ void dissect_epath( tvbuff_t *tvb, packet_info *pinfo, proto_item *epath_item, i
case CI_NETWORK_SEG_SCHEDULE:
proto_tree_add_item(net_tree, hf_cip_seg_schedule, tvb, offset+pathpos+1, 1, ENC_LITTLE_ENDIAN );
- proto_item_set_len( net_item, 2 + seg_size );
- proto_item_set_len( path_seg_item, 2 + seg_size );
+ proto_item_set_len( net_item, 2 );
+ proto_item_set_len( path_seg_item, 2 );
pathpos += 2;
break;
case CI_NETWORK_SEG_FIXED_TAG:
proto_tree_add_item(net_tree, hf_cip_seg_fixed_tag, tvb, offset+pathpos+1, 1, ENC_LITTLE_ENDIAN );
- proto_item_set_len( net_item, 2 + seg_size );
- proto_item_set_len( path_seg_item, 2 + seg_size );
+ proto_item_set_len( net_item, 2 );
+ proto_item_set_len( path_seg_item, 2 );
pathpos += 2;
break;
@@ -2867,8 +2867,8 @@ void dissect_epath( tvbuff_t *tvb, packet_info *pinfo, proto_item *epath_item, i
proto_tree_add_uint_format_value(net_tree, hf_cip_seg_prod_inhibit_time,
tvb, offset + pathpos+1, 1, temp_data, "%dms", temp_data);
- proto_item_set_len( net_item, 2 + seg_size );
- proto_item_set_len( path_seg_item, 2 + seg_size );
+ proto_item_set_len( net_item, 2 );
+ proto_item_set_len( path_seg_item, 2 );
pathpos += 2;
break;