proto_tree *seqnum_tree;
proto_item *seqnum_ti;
proto_item *ti;
- guint16 snLimit;
/* Create subtree */
seqnum_ti = proto_tree_add_string_format(tree,
tvb, 0, 0, p->sequenceExpected);
PROTO_ITEM_SET_GENERATED(ti);
- /* Work out SN wrap (in case needed below) */
+ /* Make sure we have recognised SN length */
switch (p_pdcp_lte_info->seqnum_length) {
case PDCP_SN_LENGTH_5_BITS:
- snLimit = 32;
- break;
case PDCP_SN_LENGTH_7_BITS:
- snLimit = 128;
- break;
case PDCP_SN_LENGTH_12_BITS:
- snLimit = 4096;
break;
default:
DISSECTOR_ASSERT_NOT_REACHED();
/* UO-1 if !(ipv4 && rand) */
if (!((p_pdcp_info->rohc_ip_version == 4) &&
(!p_pdcp_info->rnd))) {
- offset = dissect_pdcp_uo_1_packet(rohc_tree, rohc_ti, tvb, offset, p_pdcp_info, pinfo);
+
+ dissect_pdcp_uo_1_packet(rohc_tree, rohc_ti, tvb, offset, p_pdcp_info, pinfo);
} else {
/* Whether its UO-1-ID or UO-1-TS depends upon T bit */
dissect_pdcp_uo_1_ts_or_id_packet(rohc_tree, rohc_ti, tvb, offset, p_pdcp_info, pinfo);
if (!((p_pdcp_info->rohc_ip_version == 4) &&
(!p_pdcp_info->rnd))) {
- offset = dissect_pdcp_uor_2_packet(rohc_tree, rohc_ti, tvb, offset, p_pdcp_info, pinfo);
+ dissect_pdcp_uor_2_packet(rohc_tree, rohc_ti, tvb, offset, p_pdcp_info, pinfo);
}
else {
/* Whether its UOR-2-ID or UOR-2-TS depends upon T bit */
void proto_reg_handoff_pdcp_lte(void)
{
- dissector_handle_t pdcp_lte_handle;
-
- pdcp_lte_handle = find_dissector("pdcp-lte");
/* Add as a heuristic UDP dissector */
heur_dissector_add("udp", dissect_pdcp_lte_heur, proto_pdcp_lte);
/* May need to skip padding after last extension part */
isOdd = (s_number_of_extensions % 2);
if (isOdd) {
- guint8 padding;
- proto_item *ti;
-
- padding = tvb_get_guint8(tvb, offset) & 0x0f;
- ti = proto_tree_add_item(tree, hf_rlc_lte_extension_padding,
- tvb, offset, 1, FALSE);
- offset++;
+ proto_tree_add_item(tree, hf_rlc_lte_extension_padding,
+ tvb, offset++, 1, FALSE);
}
return offset;
void
proto_reg_handoff_rlc_lte(void)
{
- dissector_handle_t rlc_lte_handle;
-
- rlc_lte_handle = find_dissector("rlc-lte");
/* Add as a heuristic UDP dissector */
heur_dissector_add("udp", dissect_rlc_lte_heur, proto_rlc_lte);
}