Skip to content

Commit

Permalink
improv/add-3g-4g-rrc-channel-types-from-scat: Fix decoding 4G signall…
Browse files Browse the repository at this point in the history
…ing payload logs with the extended version 20 for LTE RRC packets (still according to SCAT)
  • Loading branch information
p1-mmr committed May 18, 2021
1 parent ce50768 commit c11340f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
15 changes: 8 additions & 7 deletions modules/pcap_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ def on_log(self, log_type, log_payload, log_header, timestamp = 0):
if ext_header_ver in (14, 15, 16, 20, 24):

channel_lookup_table.update({
LTE_BCCH_BCH_v0: GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message,
LTE_BCCH_DL_SCH_v0: GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message,
LTE_MCCH_v0: GSMTAP_LTE_RRC_SUB_MCCH_Message,
LTE_PCCH_v0: GSMTAP_LTE_RRC_SUB_PCCH_Message,
LTE_DL_CCCH_v0: GSMTAP_LTE_RRC_SUB_DL_CCCH_Message,
LTE_DL_DCCH_v0: GSMTAP_LTE_RRC_SUB_DL_DCCH_Message,
LTE_BCCH_BCH_v14: GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message,
LTE_BCCH_DL_SCH_v14: GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message,
LTE_MCCH_v14: GSMTAP_LTE_RRC_SUB_MCCH_Message,
LTE_PCCH_v14: GSMTAP_LTE_RRC_SUB_PCCH_Message,
LTE_DL_CCCH_v14: GSMTAP_LTE_RRC_SUB_DL_CCCH_Message,
LTE_DL_DCCH_v14: GSMTAP_LTE_RRC_SUB_DL_DCCH_Message,
LTE_UL_CCCH_v14: GSMTAP_LTE_RRC_SUB_UL_CCCH_Message,
LTE_UL_DCCH_v14: GSMTAP_LTE_RRC_SUB_UL_DCCH_Message,
})
Expand Down Expand Up @@ -304,7 +304,8 @@ def on_log(self, log_type, log_payload, log_header, timestamp = 0):

if gsmtap_channel_type is None:

warning('Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: %d' % channel_type)
warning('Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C version %d: %d' % (
ext_header_ver, channel_type))
return

packet = build_gsmtap_ip(GSMTAP_TYPE_LTE_RRC, gsmtap_channel_type, packet, is_uplink)
Expand Down
6 changes: 6 additions & 0 deletions protocol/log_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
LTE_UL_CCCH_v0 = 7
LTE_UL_DCCH_v0 = 8

LTE_BCCH_BCH_v14 = 1
LTE_BCCH_DL_SCH_v14 = 2
LTE_MCCH_v14 = 4
LTE_PCCH_v14 = 5
LTE_DL_CCCH_v14 = 6
LTE_DL_DCCH_v14 = 7
LTE_UL_CCCH_v14 = 8
LTE_UL_DCCH_v14 = 9

Expand Down

0 comments on commit c11340f

Please sign in to comment.