aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-07-08 15:58:55 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2016-07-08 15:03:56 +0000
commit837b5347ba8fe1ad9de2315e20637ca3d1e0f6d7 (patch)
tree4344f9eae0d8bfa8a07b6abffde28c8a1d935c4f
parentf0bc3901167209da656c31240779e6564aff66a0 (diff)
GSM RLC/MAC: register dissectors for EC-GSM-IoT control messages
Change-Id: I8fe84cc98b8967c529c07ff17014648610ad8660 Reviewed-on: https://code.wireshark.org/review/16340 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-gsm_rlcmac.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gsm_rlcmac.c b/epan/dissectors/packet-gsm_rlcmac.c
index 7bec7c6..7262bab 100644
--- a/epan/dissectors/packet-gsm_rlcmac.c
+++ b/epan/dissectors/packet-gsm_rlcmac.c
@@ -9250,7 +9250,16 @@ dissect_gsm_rlcmac_downlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
return tvb_reported_length(tvb);
}
+static int
+dissect_gsm_ec_rlcmac_downlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
+{
+ RlcMacPrivateData_t rlc_mac;
+ rlc_mac.magic = GSM_RLC_MAC_MAGIC_NUMBER;
+ rlc_mac.block_format = RLCMAC_EC_CS1;
+ rlc_mac.flags = 0;
+ return dissect_gsm_rlcmac_downlink(tvb, pinfo, tree, &rlc_mac);
+}
static int
dissect_gsm_rlcmac_uplink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
@@ -9318,6 +9327,17 @@ dissect_gsm_rlcmac_uplink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
return tvb_reported_length(tvb);
}
+static int
+dissect_gsm_ec_rlcmac_uplink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
+{
+ RlcMacPrivateData_t rlc_mac;
+
+ rlc_mac.magic = GSM_RLC_MAC_MAGIC_NUMBER;
+ rlc_mac.block_format = RLCMAC_EC_CS1;
+ rlc_mac.flags = 0;
+ return dissect_gsm_rlcmac_uplink(tvb, pinfo, tree, &rlc_mac);
+}
+
void
proto_register_gsm_rlcmac(void)
{
@@ -17688,6 +17708,8 @@ proto_register_gsm_rlcmac(void)
expert_register_field_array(expert_gsm_rlcmac, ei, array_length(ei));
register_dissector("gsm_rlcmac_ul", dissect_gsm_rlcmac_uplink, proto_gsm_rlcmac);
register_dissector("gsm_rlcmac_dl", dissect_gsm_rlcmac_downlink, proto_gsm_rlcmac);
+ register_dissector("gsm_ec_rlcmac_ul", dissect_gsm_ec_rlcmac_uplink, proto_gsm_rlcmac);
+ register_dissector("gsm_ec_rlcmac_dl", dissect_gsm_ec_rlcmac_downlink, proto_gsm_rlcmac);
}
void proto_reg_handoff_gsm_rlcmac(void)