forked from osmocom/wireshark
Its convenient to be able to filter on mac-lte.ulsch or mac-lte.dlsch.
svn path=/trunk/; revision=32088
This commit is contained in:
parent
905b2ea13a
commit
80d7644409
|
@ -74,7 +74,9 @@ static int hf_mac_lte_oob_send_sr = -1;
|
|||
static int hf_mac_lte_oob_sr_failure = -1;
|
||||
|
||||
/* MAC SCH header fields */
|
||||
static int hf_mac_lte_ulsch = -1;
|
||||
static int hf_mac_lte_ulsch_header = -1;
|
||||
static int hf_mac_lte_dlsch = -1;
|
||||
static int hf_mac_lte_dlsch_header = -1;
|
||||
static int hf_mac_lte_sch_subheader = -1;
|
||||
|
||||
|
@ -1733,6 +1735,7 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
volatile guint8 n;
|
||||
proto_item *truncated_ti;
|
||||
proto_item *padding_length_ti;
|
||||
proto_item *hidden_root_ti;
|
||||
|
||||
/* Keep track of LCIDs and lengths as we dissect the header */
|
||||
volatile guint8 number_of_headers = 0;
|
||||
|
@ -1772,6 +1775,16 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
TrackSRInfo(SR_Grant, pinfo, tree, tvb, p_mac_lte_info->rnti, NULL);
|
||||
}
|
||||
|
||||
/* Add hidden item to filter on */
|
||||
hidden_root_ti = proto_tree_add_string_format(tree,
|
||||
(direction == DIRECTION_UPLINK) ?
|
||||
hf_mac_lte_ulsch :
|
||||
hf_mac_lte_dlsch,
|
||||
tvb, offset, 0,
|
||||
"",
|
||||
"Hidden header");
|
||||
PROTO_ITEM_SET_HIDDEN(hidden_root_ti);
|
||||
|
||||
/* Add PDU block header subtree */
|
||||
pdu_header_ti = proto_tree_add_string_format(tree,
|
||||
(direction == DIRECTION_UPLINK) ?
|
||||
|
@ -2978,6 +2991,12 @@ void proto_register_mac_lte(void)
|
|||
|
||||
/*******************************************/
|
||||
/* MAC shared channel header fields */
|
||||
{ &hf_mac_lte_ulsch,
|
||||
{ "UL-SCH",
|
||||
"mac-lte.ulsch", FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL
|
||||
}
|
||||
},
|
||||
{ &hf_mac_lte_ulsch_header,
|
||||
{ "UL-SCH Header",
|
||||
"mac-lte.ulsch.header", FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
|
@ -2990,6 +3009,12 @@ void proto_register_mac_lte(void)
|
|||
NULL, HFILL
|
||||
}
|
||||
},
|
||||
{ &hf_mac_lte_dlsch,
|
||||
{ "DL-SCH",
|
||||
"mac-lte.dlsch", FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL
|
||||
}
|
||||
},
|
||||
{ &hf_mac_lte_sch_subheader,
|
||||
{ "SCH sub-header",
|
||||
"mac-lte.sch.subheader", FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
|
|
Loading…
Reference in New Issue