diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-09 11:37:13 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-09 12:59:54 +0100 |
commit | dfa8a3fe5a1408a4355bb325d358dd1ab2c27d31 (patch) | |
tree | c1af934329b8b75b7b4aa2de2bbf17ec0448de4c /epan | |
parent | d0b0094bf3622cb1d4f6fc84e38a8b80ecad8da6 (diff) |
rlcmac: Fix EGPRS UL data block TLLI endianess
According to TS 44.060, figure 10.3a.2.1, note 2, the TLLI is
encoded in little endian for EGPRS (while big endian is used in GPRS).
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-gsm_rlcmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_rlcmac.c b/epan/dissectors/packet-gsm_rlcmac.c index 86f7836b55..e38a63467e 100644 --- a/epan/dissectors/packet-gsm_rlcmac.c +++ b/epan/dissectors/packet-gsm_rlcmac.c @@ -9660,7 +9660,7 @@ dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* the next fields are present according to earlier flags */ if (tlli_i) { - proto_tree_add_bits_item(data_tree, hf_tlli, tvb, offset * 8, 32, ENC_BIG_ENDIAN); + proto_tree_add_item(data_tree, hf_tlli, tvb, offset, 4, ENC_LITTLE_ENDIAN); offset += 4; } if (egprs_ul_header_info->pi) |