aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nr-rrc.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2019-02-04 14:04:14 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2019-02-04 18:17:25 +0000
commitd6879b6c24cce79b2aed1b7b28e2c9ee2e90bff1 (patch)
tree99d79cefb87601e064ccdf46b11bfe2dad52178b /epan/dissectors/packet-nr-rrc.c
parent23a1b085ff3a0145ff6fd49eedfab6999704932a (diff)
For ASN.1-based protocols, make sure protocol filter will match.
This is optional, and enabled by setting PROTO_ROOT_NAME to the name of the item in the OPT section of the .cnf file. For now, setting only in nr-rrc. Change-Id: Ibe96c7de982af0346af90bc0e095f20d1a7ac506 Reviewed-on: https://code.wireshark.org/review/31876 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'epan/dissectors/packet-nr-rrc.c')
-rw-r--r--epan/dissectors/packet-nr-rrc.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nr-rrc.c b/epan/dissectors/packet-nr-rrc.c
index f56520730d..275bd380c4 100644
--- a/epan/dissectors/packet-nr-rrc.c
+++ b/epan/dissectors/packet-nr-rrc.c
@@ -4652,6 +4652,8 @@ static const per_sequence_t HandoverCommand_sequence[] = {
static int
dissect_nr_rrc_HandoverCommand(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_HandoverCommand, HandoverCommand_sequence);
@@ -5587,6 +5589,8 @@ static const per_sequence_t ConfigRestrictInfoSCG_sequence[] = {
static int
dissect_nr_rrc_ConfigRestrictInfoSCG(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_ConfigRestrictInfoSCG, ConfigRestrictInfoSCG_sequence);
@@ -5859,6 +5863,8 @@ static const per_sequence_t HandoverPreparationInformation_sequence[] = {
static int
dissect_nr_rrc_HandoverPreparationInformation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_HandoverPreparationInformation, HandoverPreparationInformation_sequence);
@@ -5894,6 +5900,8 @@ static const per_sequence_t BandCombinationInfoSN_sequence[] = {
static int
dissect_nr_rrc_BandCombinationInfoSN(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_BandCombinationInfoSN, BandCombinationInfoSN_sequence);
@@ -7643,6 +7651,8 @@ static const per_sequence_t MeasurementTimingConfiguration_sequence[] = {
static int
dissect_nr_rrc_MeasurementTimingConfiguration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_MeasurementTimingConfiguration, MeasurementTimingConfiguration_sequence);
@@ -7768,6 +7778,8 @@ static const per_sequence_t UERadioPagingInformation_sequence[] = {
static int
dissect_nr_rrc_UERadioPagingInformation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_UERadioPagingInformation, UERadioPagingInformation_sequence);
@@ -7889,6 +7901,8 @@ static const per_sequence_t UERadioAccessCapabilityInformation_sequence[] = {
static int
dissect_nr_rrc_UERadioAccessCapabilityInformation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_UERadioAccessCapabilityInformation, UERadioAccessCapabilityInformation_sequence);
@@ -7994,6 +8008,8 @@ static const per_sequence_t MIB_sequence[] = {
static int
dissect_nr_rrc_MIB(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "MIB");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -8591,6 +8607,8 @@ static const per_sequence_t SIB2_sequence[] = {
static int
dissect_nr_rrc_SIB2(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB2");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -8720,6 +8738,8 @@ static const per_sequence_t SIB3_sequence[] = {
static int
dissect_nr_rrc_SIB3(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB3");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -8849,6 +8869,8 @@ static const per_sequence_t SIB4_sequence[] = {
static int
dissect_nr_rrc_SIB4(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB4");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -9208,6 +9230,8 @@ static const per_sequence_t SIB5_sequence[] = {
static int
dissect_nr_rrc_SIB5(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB5");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -9286,6 +9310,8 @@ static const per_sequence_t SIB6_sequence[] = {
static int
dissect_nr_rrc_SIB6(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB6");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -9441,6 +9467,8 @@ static const per_sequence_t SIB7_sequence[] = {
static int
dissect_nr_rrc_SIB7(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB7");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -9597,6 +9625,8 @@ static const per_sequence_t SIB8_sequence[] = {
static int
dissect_nr_rrc_SIB8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB8");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -9691,6 +9721,8 @@ static const per_sequence_t SIB9_sequence[] = {
static int
dissect_nr_rrc_SIB9(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_str(actx->pinfo->cinfo, COL_INFO, " SIB9");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -13279,6 +13311,8 @@ static const per_sequence_t SIB1_sequence[] = {
static int
dissect_nr_rrc_SIB1(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "SIB1");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -14330,6 +14364,8 @@ static const per_sequence_t RadioBearerConfig_sequence[] = {
static int
dissect_nr_rrc_RadioBearerConfig(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_RadioBearerConfig, RadioBearerConfig_sequence);
@@ -16341,6 +16377,8 @@ static const per_sequence_t MeasGapConfig_sequence[] = {
static int
dissect_nr_rrc_MeasGapConfig(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_MeasGapConfig, MeasGapConfig_sequence);
@@ -16477,6 +16515,8 @@ static const per_sequence_t MeasConfig_sequence[] = {
static int
dissect_nr_rrc_MeasConfig(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_MeasConfig, MeasConfig_sequence);
@@ -16867,6 +16907,8 @@ static const per_sequence_t RRCReconfiguration_sequence[] = {
static int
dissect_nr_rrc_RRCReconfiguration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "RRC Reconfiguration");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -19301,6 +19343,8 @@ static const per_sequence_t UplinkTxDirectCurrentList_sequence_of[1] = {
static int
dissect_nr_rrc_UplinkTxDirectCurrentList(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_UplinkTxDirectCurrentList, UplinkTxDirectCurrentList_sequence_of,
1, maxNrofServingCells, FALSE);
@@ -19395,6 +19439,8 @@ static const per_sequence_t RRCReconfigurationComplete_sequence[] = {
static int
dissect_nr_rrc_RRCReconfigurationComplete(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
col_append_sep_str(actx->pinfo->cinfo, COL_INFO, NULL, "RRC Reconfiguration Complete");
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
@@ -32310,6 +32356,8 @@ static const per_sequence_t CellGroupConfig_sequence[] = {
static int
dissect_nr_rrc_CellGroupConfig(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_CellGroupConfig, CellGroupConfig_sequence);
@@ -35786,6 +35834,8 @@ static const per_sequence_t FreqBandList_sequence_of[1] = {
static int
dissect_nr_rrc_FreqBandList(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ proto_item *prot_ti = proto_tree_add_item(tree, proto_nr_rrc, tvb, 0, -1, ENC_NA);
+ PROTO_ITEM_SET_HIDDEN(prot_ti);
offset = dissect_per_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
ett_nr_rrc_FreqBandList, FreqBandList_sequence_of,
1, maxBandsMRDC, FALSE);