wireshark/epan
Jonas Falkevik 34b41729f9 lcsap: fix decode of plmnIdentity
Corretly decode MNC if it consists of 3 digits
Change to what is called big endinan MNC

   8   7   6   5   4   3   2   1
 +---+---+---+---+---+---+---+---+
 |  MCC digit 2  |  MCC digit 1  |  octet x
 +---------------+---------------+
 |    Filler     |  MCC digit 3  |  octet x+1
 +---------------+---------------+
 |  MNC digit 2  |  MNC digit 1  |  octet x+2
 +---------------+---------------+

 MNC of length 3:

   8   7   6   5   4   3   2   1
 +---+---+---+---+---+---+---+---+
 |  MCC digit 2  |  MCC digit 1  |  octet x
 +---------------+---------------+
 |  MNC digit 1  |  MCC digit 3  |  octet x+1
 +---------------+---------------+
 |  MNC digit 3  |  MNC digit 2  |  octet x+2
 +---------------+---------------+

From 3GPP TS 29.171
7.4.27 PLMN Identity

- digits 0 to 9, encoded 0000 to 1001,
- 1111 used as filler digit, two digits per octet,

- bits 4 to 1 of octet n encoding digit 2n-1
- bits 8 to 5 of octet n encoding digit 2n

The Selected PLMN identity consists of 3 digits from MCC followed by either
- a filler digit plus 2 digits from MNC (in case of 2 digit MNC) or
- 3 digits from MNC (in case of a 3 digit MNC).


(cherry picked from commit 156f9e81fc)
2020-10-29 10:07:09 +00:00
..
crypt dot11decrypt: Fix WEP decryption 2020-10-21 11:03:44 +00:00
dfilter Add FT_STRINGZTRUNC. 2020-09-12 14:16:12 -07:00
dissectors lcsap: fix decode of plmnIdentity 2020-10-29 10:07:09 +00:00
ftypes Add FT_STRINGZTRUNC. 2020-09-12 14:16:12 -07:00
wmem Replace ill-formed UTF-8 byte sequences with replacement character 2020-10-15 21:48:28 +00:00
wslua wslua: Make pinfo.p2p_dir writable 2020-10-22 14:18:58 +00:00
.editorconfig
CMakeLists.txt Initialize release-3.4. 2020-10-22 11:38:47 -07:00
addr_and_mask.c epan: access a ws_in4_addr byte by byte. 2020-04-16 17:11:59 +00:00
addr_and_mask.h wsutil: use ws_in4_addr in tvb_get_ipv4_addr_with_prefix_len. 2020-04-14 08:31:11 +00:00
addr_resolv.c Edit Resolved Name: Don't add duplicate IPs 2020-02-24 07:45:00 +00:00
addr_resolv.h Edit Resolved Name: Don't add duplicate IPs 2020-02-24 07:45:00 +00:00
address.h
address_types.c
address_types.h
afn.c
afn.h
aftypes.c
aftypes.h
app_mem_usage.c
app_mem_usage.h
arcnet_pids.h
arptypes.h ARP: expand the set of ARPHRD_ definitions from both IANA and Linxu. 2020-05-09 12:08:54 +00:00
asn1.c
asn1.h
ax25_pids.h
bridged_pids.h
capture_dissectors.c
capture_dissectors.h
charsets.c Use iconv to support GB 18030 and EUC-KR, allow future encodings 2020-10-21 11:26:23 +00:00
charsets.h Use iconv to support GB 18030 and EUC-KR, allow future encodings 2020-10-21 11:26:23 +00:00
chdlctypes.h
cisco_pid.h Use symbolic values for Cisco's LLC PIDs 2020-01-10 23:36:33 +00:00
color_filters.c wslua: Add ability to query current temporary color filter text 2020-06-25 08:02:27 +00:00
color_filters.h wslua: Add ability to query current temporary color filter text 2020-06-25 08:02:27 +00:00
column-info.h
column-utils.c Handle relative times with >2^31 seconds. 2020-10-18 02:06:07 -07:00
column-utils.h
column.c
column.h
conv_id.h
conversation.c conversation: use wmem_new0 instead of memset. 2020-04-14 06:03:33 +00:00
conversation.h conversation.h: Whitespace fixes 2019-11-24 21:33:18 +00:00
conversation_debug.h
conversation_filter.c
conversation_filter.h
conversation_table.c
conversation_table.h
crc6-tvb.c
crc6-tvb.h
crc8-tvb.c
crc8-tvb.h
crc10-tvb.c
crc10-tvb.h
crc16-tvb.c
crc16-tvb.h
crc32-tvb.c
crc32-tvb.h
decode_as.c Add FT_STRINGZTRUNC. 2020-09-12 14:16:12 -07:00
decode_as.h epan: Keep decode_as_list when changing profile 2020-06-29 18:40:27 +00:00
diam_dict.h
diam_dict.l
disabled_protos.c
disabled_protos.h
dtd.h
dtd_grammar.lemon
dtd_parse.h
dtd_parse.l
dtd_preparse.l epan DTD parser: don't leak the full path string on error. 2020-05-02 22:18:58 +00:00
dvb_chartbl.c
dvb_chartbl.h
eap.h Add a few EAP dissectors 2020-09-21 15:05:05 +00:00
eapol_keydes_types.h
epan.c epan: Keep decode_as_list when changing profile 2020-06-29 18:40:27 +00:00
epan.h
epan_dissect.h
etypes.h New dissector: Added support for IEEE 802.1CB R-Tags (EtherType 0xF1C1) 2020-10-15 13:51:51 +02:00
ex-opt.c
ex-opt.h
except.c
except.h
exceptions.h Stylistic consistency. 2020-04-09 22:16:02 +00:00
exntest.c
expert.c
expert.h Clean up URLs. 2020-10-02 20:13:42 -07:00
export_object.c Fix memory leak in export_object.c 2020-05-02 21:41:09 +00:00
export_object.h
exported_pdu.c Replace instances of wmem_alloc with wmem_new 2020-08-08 09:54:29 +00:00
exported_pdu.h
filter_expressions.c
filter_expressions.h
follow.c
follow.h Add all supported charsets to Show Packet Bytes/Follow Stream 2020-07-06 14:21:41 +00:00
frame_data.c Add a new record type REC_TYPE_SYSTEMD_JOURNAL. 2020-10-28 04:16:42 +00:00
frame_data.h
frame_data_sequence.c
frame_data_sequence.h
funnel.c
funnel.h wslua: Add ability to query current temporary color filter text 2020-06-25 08:02:27 +00:00
garrayfix.h
golay.c
golay.h
guid-utils.c
guid-utils.h
iana_charsets.c
iana_charsets.h
iax2_codec_type.h
in_cksum.c
in_cksum.h
ip_opts.h
ipproto.c
ipproto.h
ipv4.h
ipv6.h
lapd_sapi.h
llcsaps.h
maxmind_db.c
maxmind_db.h
media_params.c
media_params.h
next_tvb.c
next_tvb.h
nlpid.h
oids.c SNMP: Use BASE_SHOW_ASCII_PRINTABLE for octet strings 2020-10-10 13:28:06 +00:00
oids.h
oids_test.c tests: Try to squelch [-Wpointer-sign] warnings. 2020-07-01 10:01:39 +00:00
osi-utils.c
osi-utils.h
oui.h ieee80211: add VS SGDSN type 1 message 2020-07-08 06:29:00 +00:00
packet.c Add a new record type REC_TYPE_SYSTEMD_JOURNAL. 2020-10-28 04:16:42 +00:00
packet.h sll: add support for LINKTYPE_LINUX_SLL2. 2020-05-09 03:14:50 +00:00
packet_info.h
params.h
plugin_if.c plugin_if: add plugin_if_get_frame_data() and plugin_if_get_capture_file() 2020-08-22 05:32:29 +00:00
plugin_if.h plugin_if: add plugin_if_get_frame_data() and plugin_if_get_capture_file() 2020-08-22 05:32:29 +00:00
ppptypes.h
prefs-int.h Protobuf: add dissecting protobuf fields as wireshark fields preferences, etc. 2019-12-19 05:04:17 +00:00
prefs.c Fix some spelling errors detected in epan/prefs.c 2020-09-01 20:43:42 +00:00
prefs.h Qt: Add a packet diagram view. 2020-08-10 18:17:50 +00:00
print.c XML Escaping: Don't need to escape unprintable chars. 2020-10-20 05:32:29 +00:00
print.h
print.ps
print_stream.c
print_stream.h
proto.c proto: add support for FT_BYTES in proto_tree_add_bits 2020-10-15 18:21:34 +00:00
proto.h Use iconv to support GB 18030 and EUC-KR, allow future encodings 2020-10-21 11:26:23 +00:00
proto_data.c epan: Add p_[gs]et_proto_depth. 2020-04-15 04:09:08 +00:00
proto_data.h epan: Add p_[gs]et_proto_depth. 2020-04-15 04:09:08 +00:00
protobuf-helper.c Get rid of %debug, so protobuf_lang.y can be processed by Berkeley YACC. 2020-01-06 10:25:18 +00:00
protobuf-helper.h Protobuf: add dissecting protobuf fields as wireshark fields preferences, etc. 2019-12-19 05:04:17 +00:00
protobuf_lang.y.in Include <stdint.h> in YACC/Bison parsers if necessary. 2020-10-19 11:17:43 -07:00
protobuf_lang_scanner.l
protobuf_lang_tree.c Protobuf: add dissecting protobuf fields as wireshark fields preferences, etc. 2019-12-19 05:04:17 +00:00
protobuf_lang_tree.h Get rid of %debug, so protobuf_lang.y can be processed by Berkeley YACC. 2020-01-06 10:25:18 +00:00
ps.h
ptvcursor.h
radius_dict.l
range.c
range.h
reassemble.c eassembly: Fix check for no data to prevent NULL deference 2020-10-14 03:31:48 +00:00
reassemble.h
reassemble_test.c tests: Try to squelch [-Wpointer-sign] warnings. 2020-07-01 10:01:39 +00:00
reedsolomon.c
reedsolomon.h
register-int.h
register.c
register.h
req_resp_hdrs.c
req_resp_hdrs.h
rtd_table.c
rtd_table.h
rtp_pt.h
sctpppids.h SCTP: update PPI values 2020-10-06 19:19:09 +00:00
secrets.c Fix UAT PKCS #11 Library handle leak 2020-01-15 04:52:04 +00:00
secrets.h
sequence_analysis.c
sequence_analysis.h
show_exception.c
show_exception.h
slow_protocol_subtypes.h
sminmpec.h added fastip (Boundary) enterprise ID 2020-04-03 06:50:15 +00:00
srt_table.c
srt_table.h
stat_groups.h
stat_tap_ui.c
stat_tap_ui.h
stats_tree.c WSUG: Add a Packet Lengths dialog section. 2020-01-03 16:37:08 +00:00
stats_tree.h
stats_tree_priv.h
stream.c
stream.h
strutil.c Add format_text_string(), which gets the length with strlen(). 2020-08-20 07:24:32 +00:00
strutil.h Add format_text_string(), which gets the length with strlen(). 2020-08-20 07:24:32 +00:00
t35.c
t35.h
tap-voip.h
tap.c
tap.h
tfs.c TFS: Add some commonly-defined string pairs to tfs.c 2020-08-17 02:58:01 +00:00
tfs.h TFS: Add some commonly-defined string pairs to tfs.c 2020-08-17 02:58:01 +00:00
time_fmt.h
timestamp.c
timestamp.h
timestats.c
timestats.h
to_str-int.h
to_str.c Handle relative times with >2^31 seconds. 2020-10-18 02:06:07 -07:00
to_str.h Handle relative times with >2^31 seconds. 2020-10-18 02:06:07 -07:00
tvbparse.c Replace instances of wmem_alloc with wmem_new 2020-08-08 09:54:29 +00:00
tvbparse.h
tvbtest.c tests: Try to squelch [-Wpointer-sign] warnings. 2020-07-01 10:01:39 +00:00
tvbuff-int.h
tvbuff.c Update validate_single_byte_ascii_encoding with new encodings 2020-10-22 05:21:39 +00:00
tvbuff.h Add some more string encodings. 2020-09-28 22:30:35 +00:00
tvbuff_base64.c
tvbuff_brotli.c
tvbuff_composite.c composite_tvb: fix memory leak when tvb_composite_finalize is not called 2020-06-01 03:40:57 +00:00
tvbuff_lz77.c
tvbuff_lz77huff.c
tvbuff_lznt1.c
tvbuff_real.c
tvbuff_subset.c
tvbuff_zlib.c Update URLs pointing to the bug database. 2020-10-03 07:54:12 -07:00
uat-int.h
uat.c
uat.h
uat_load.l
unit_strings.c Document unit string and true false string helper functions 2020-04-29 10:07:51 +00:00
unit_strings.h Document unit string and true false string helper functions 2020-04-29 10:07:51 +00:00
value_string.c
value_string.h value_string: Change the bytes_string struct to avoid Wpointer-sign 2020-07-08 06:43:55 +00:00
x264_prt_id.h
xdlc.c
xdlc.h