Set and use 'plane' more carefully.

svn path=/trunk/; revision=27488
This commit is contained in:
Martin Mathieson 2009-02-20 10:17:52 +00:00
parent 34423cbcc3
commit e6662f6223
2 changed files with 9 additions and 1 deletions

View File

@ -1397,6 +1397,9 @@ static void attach_pdcp_lte_info(packet_info *pinfo)
p_pdcp_lte_info->no_header_pdu = outhdr_values[i++];
p_pdcp_lte_info->plane = outhdr_values[i++];
if (p_pdcp_lte_info->plane != USER_PLANE) {
p_pdcp_lte_info->plane = SIGNALING_PLANE;
}
p_pdcp_lte_info->seqnum_length = outhdr_values[i++];
p_pdcp_lte_info->rohc_compression = outhdr_values[i++];

View File

@ -1544,7 +1544,12 @@ static void dissect_pdcp_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
}
else {
if (tvb_length_remaining(tvb, offset) > 0) {
proto_tree_add_item(pdcp_tree, hf_pdcp_lte_user_plane_data, tvb, offset, -1, FALSE);
if (p_pdcp_info->plane == USER_PLANE) {
proto_tree_add_item(pdcp_tree, hf_pdcp_lte_user_plane_data, tvb, offset, -1, FALSE);
}
else {
proto_tree_add_item(pdcp_tree, hf_pdcp_lte_signalling_data, tvb, offset, -1, FALSE);
}
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " (%u bytes data)",