aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-e212.c
AgeCommit message (Collapse)AuthorFilesLines
2022-03-24E212: update and add new MCC/MNC entries for KazakhstanVadim Yanitskiy1-2/+9
References (mostly in Russian): * https://ru.wikipedia.org/wiki/MNC * https://htmlweb.ru/geo/oper.php?country=KZ * http://www.mcc-mnc.com/
2021-10-20E212: Update MCC listJohn Thacker1-25/+36
Op. Bulletin No. 1117 (1.II.2017) has an annexed list of Mobile Country Codes that includes a number of which are not mentioned in the MCC/MNC combined list in Op. Bulletin No. 1161 (1.XX.2018), possibly because the MNCs are not reported to the ITU in a timely fashion or because the assigned number is not actually used (e.g., Vatican City). See: https://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1117-2017-OAS-PDF-E.pdf
2021-07-21First pass pinfo->pool conversion, part 2Evan Huus1-8/+8
Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure.
2021-05-16NGAP, XNaP, NAS_5GS: Add E212_GUAMI to MCC/MNC field choicesJohn Thacker1-0/+16
2021-05-16S1AP, X2AP: Add GUMMEI MNC/MCC fieldsJohn Thacker1-0/+16
Add a new MNC/MCC field type to packet-e212 for the GUMMEI (Globally Unique MME Identity), and use it where appropriate in S1AP and X2AP. See 3GPP TS 23.003.
2021-05-09S1AP: Use specific MCC/MNC fieldsJohn Thacker1-0/+16
Use the specific MCC/MNC fields for the LAI, CGI, ECGI, NR-CGI, TAI, and 5GS-TAI IEs, continuing to use E212_NONE for PLMNidentity in all other cases. Add fields and an enum value for 5GS-TAI to packet-e212. (The 5GSTAC has an additional octet compared to the original TAC.)
2020-12-10Introduce ENC_BCD_ODD_NUM_DIG in order to handle odd number of digitsAnders Broman1-3/+6
2020-10-07E212: fix a test when checking MCC digitsPascal Quantin1-1/+1
Closes #16895
2020-08-18E212: Update MCC / MNC code interpretationsJaap Keuter1-528/+673
Update the data related to ITU-T E.212 with the latest released information as found in the ITU-T Operational Bulletins, amended with some other online resources where the ITU-T seem not be informed yet. Also retain the UTF-8 encoding of the registered data. Bug: 16755 Change-Id: I13ba306558c0768379fa0e82db84e30f57af8259 Reviewed-on: https://code.wireshark.org/review/38159 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2020-07-08E212: allow to decode 5 digits long short IMSI used in MAP messagesPascal Quantin1-5/+7
Bug: 16676 Change-Id: I8ba5bce3ec3a63f3c95ebb58ffdbe54d3546a96a Reviewed-on: https://code.wireshark.org/review/37775 Reviewed-by: Pascal Quantin <pascal@wireshark.org> Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-04-04epan: Convert our PROTO_ITEM_ macros to inline functions.Gerald Combs1-2/+2
Convert our various PROTO_ITEM_ macros to inline functions and document them. Change-Id: I070b15d4f70d2189217a177ee8ba2740be36327c Reviewed-on: https://code.wireshark.org/review/32706 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-01IMSI based filtering for SCCP/RANAPAnders Broman1-1/+11
Bug: 9074 Change-Id: Iae7e233d03367678a6925c732bf4b6d78c211cd8 Reviewed-on: https://code.wireshark.org/review/32286 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-08-20E.212: fix 255 04 and 255 06 PLMN namesPascal Quantin1-2/+2
This fixes commit g2c89e6c448 Bug: 15068 Change-Id: Ieec7ffb039af48903f9ee3f91800f603203f811e Reviewed-on: https://code.wireshark.org/review/29201 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-08-09GTPv2: add dissection of newer geographic location typesPascal Quantin1-0/+16
Bug: 15050 Change-Id: I3ecf9715fa5950262b68caff61e55abf943cebca Reviewed-on: https://code.wireshark.org/review/29045 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-10-27Change NewCo to new Company name, AlivJeff Dyer1-1/+1
Change-Id: I84c06a7f168da0f65b7c76360f38f39ecf1024d0 Reviewed-on: https://code.wireshark.org/review/24112 Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-10-03E.212: update list to Operational Bulletin No. 1133 (1.X.2017)Pascal Quantin1-14/+29
Change-Id: I954d18107a5743f148388cc2356458aeddca162f Reviewed-on: https://code.wireshark.org/review/23828 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>
2017-08-01E212: Check MNC length before trying 3-digits lengthMarius Paliga1-3/+5
Bug: 13935 Change-Id: Ib3f86c7a70d065cf7d5659a2fbc9c34047efcb56 Reviewed-on: https://code.wireshark.org/review/22894 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>
2017-06-28e212: report an expert info on malformed imsiIvan Nardi1-1/+26
Change-Id: I344b061f6fbbfc41f7578005709b9b8033379609 Reviewed-on: https://code.wireshark.org/review/22447 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2017-06-22E.212: update list to Operational Bulletin No. 1126 (15.VI.2017)Pascal Quantin1-6/+29
Change-Id: Ib91dc1fca0d39b53f5f55223405f473dfa816a84 Reviewed-on: https://code.wireshark.org/review/22350 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-04-04E.212: fix a typoPascal Quantin1-1/+1
Thanks Gerald Change-Id: I9e076e2b83e0868620cb943cd29e93f0495bc913 Reviewed-on: https://code.wireshark.org/review/20913 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2017-04-03E.212: update list to Operational Bulletin No. 1121 (1.IV.2017)Pascal Quantin1-80/+193
Change-Id: Ic04f30108deb004281569eb225e42a9515430db0 Reviewed-on: https://code.wireshark.org/review/20882 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-11-06E.212: fix identification of PLMNs with 3 digits MNC ending with a 0Pascal Quantin1-1560/+1574
Split PLMNs arrays in 2 so as to clearly konw if the MNC is 2 or 3 digits long Bug: 13092 Change-Id: Ic5f776f3c1e5141f8739bf2137ebd046f7e4a0d6 Reviewed-on: https://code.wireshark.org/review/18679 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-10-28diameter: improvement of AVP 18Joakim Karlsson1-1/+1
Will now show country and operator Change-Id: Ic16623c226228ab0c3e31d33cda81953c80551d6 Reviewed-on: https://code.wireshark.org/review/18512 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-10-25e212: added 3 new filters (CGI, ECGI, TAI)Hessam Jalali1-0/+48
Added these new filters to enhance mcc/mnc filtering in GTP protocol. Change-Id: I595b5fde4fa358886fbe5c58f6ecab496d9ef08c Reviewed-on: https://code.wireshark.org/review/18444 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-10-19e212: Fix for e212.*.mncHessam Jalali1-2/+2
when mnc was not detected as long, the value was shown as e212.mnc instead of e212.*.mnc (e.g e212.rai.mnc) Change-Id: Ic0d275f259e1121abb1b7812651fadb9d475053e Reviewed-on: https://code.wireshark.org/review/18317 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Tested-by: Michael Mann <mmann78@netscape.net>
2016-10-18Update MNC list for MCC 432 (Iran)Babak Farrokhi1-3/+11
The official E.212 list does not contain the latest MNC codes that are in use for MCC 432. This commit contains an up to date list according to: http://mcclist.com/mobile-network-codes-country-codes.asp#Iran Change-Id: I847d31b1d77825c6f95f4e5879ee1f688834ed88 Reviewed-on: https://code.wireshark.org/review/18258 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>
2016-10-09E212: use ws_strtou function.Dario Lombardo1-5/+10
Change-Id: Ifaeaf7ceb7addba95237852529ae1aa3e8a8b46b Reviewed-on: https://code.wireshark.org/review/18124 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-09-23eap: dissect eap wlan identity.Dario Lombardo1-1/+1
EAP identities can be of different kind. This change adds a sort of heuristic that dissects the wlan identity in the form of <imsi>@wlan.mnc<mnc>.mcc<mcc>.3gppnetwork.org. A general purpose dissection function, acting as a proxy, has been created to make room for other specific dissections. Bug: 12921 Change-Id: Ic48aee004fa7df5ee4dbeca091ed31616d155890 Reviewed-on: https://code.wireshark.org/review/17796 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-09-01E.212: update Chinese PLMN listPascal Quantin1-5/+9
Bug: 12798 Change-Id: Id9569cb0f79094d5152ea5949d398eb7384ee76f Reviewed-on: https://code.wireshark.org/review/17439 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-08-31E.212: update list to Operational Bulletin No. 1106 (15.VIII.2016)Pascal Quantin1-135/+289
Also manually add PLMN 460 02 (Chian Mobile) as it is not listed by ITU yet Bug: 12622 Bug: 12798 Change-Id: I7c6fab9dcb9da90178186e94f624301ef1861421 Reviewed-on: https://code.wireshark.org/review/17428 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>
2016-05-18[E212] Add an MNC used in test networks to get correct MNC length.AndersBroman1-0/+1
Change-Id: I289898207ae5c5b38e4567399b7e0f3b0b48aa9b Reviewed-on: https://code.wireshark.org/review/15495 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-06-03Update mobile network codes of South Korean mobile networks.Shinjo Park1-2/+5
Change-Id: I4f988da98846ebeeba47ace270f64911baaca0b7 Reviewed-on: https://code.wireshark.org/review/8745 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-01-14[E212]Modify dissect_e212_mcc_mnc() to take E212 number type as anAndersBroman1-2/+2
argument. While at it remove deprecated APIs Change-Id: Ib1a7e9d7aeba6379fb4492816a0ac602e67493c6 Reviewed-on: https://code.wireshark.org/review/6534 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-12[E212] Make it possible to use different filters for MCC and MNC in LAIAndersBroman1-5/+59
RAI and SAI. Change-Id: I2abcc868899b8752f66347b3a0fe190670c3ce3f Reviewed-on: https://code.wireshark.org/review/6447 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-3/+2
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-17E212: fix bytes highlighting when dissecting the high nibble variantPascal Quantin1-2/+2
Change-Id: I376dcb333f7768242dbdb73313870e1e22d959ff Reviewed-on: https://code.wireshark.org/review/5362 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-09-29Add editor modelines; fix indentation as needed.Bill Meier1-0/+13
Change-Id: I1ad94654343e5a018a0b3159481d45ffb3a91263 Reviewed-on: https://code.wireshark.org/review/4363 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-27E.212: update list to Operational Bulletin No. 1058 (15.VIII.2014)Pascal Quantin1-297/+312
Change-Id: I79d12c4699df01f3435fae5342aa5ec295316959 Reviewed-on: https://code.wireshark.org/review/3874 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>
2014-08-20Add a routine to dissect an UTF8-encoded IMSI (as you'd find in Diameter) ↵Jeff Morriss1-0/+53
and use it to decode the User-Name AVP of S6a/S6d messages. Also clean up some white space/formatting. Change-Id: Idf2d4cad2af1826b24de7d59407ffeb36100c19b Reviewed-on: https://code.wireshark.org/review/3742 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-08-20Get it compiling again.Jeff Morriss1-11/+11
Remove set-but-not-used variable. Mark a parameter as unused. Change-Id: I7c3af353da2967e5d611deb2cb027a9e30e54bdf Reviewed-on: https://code.wireshark.org/review/3741 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-08-19Use dissect_e212_imsi() to dissect IMSIAndersBroman1-1/+93
Fix dissection when MCC starts in the high nibble. Replace deprecated APIs Change-Id: Ic08a1db9ee7ebb535bf7914191807304e9f88981 Reviewed-on: https://code.wireshark.org/review/3736 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-08-19Use dissect_e212_imsi() to dissect IMSIAndersBroman1-1/+1
fix offset in dissect_e212_mcc_mnc_in_address(). Change-Id: I68006ea3e2c79e2549e6f2d2c8a997e44fc3cdf1 Reviewed-on: https://code.wireshark.org/review/3722 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-08-19Use the E212 function to dissect IMSI correct the filter Id string inAndersBroman1-1/+1
E212. Change-Id: I203502b39d4ef216282d305f90c930aca84241bf Reviewed-on: https://code.wireshark.org/review/3718 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-08-19Implement a common function to dissect IMSI and use it GSM MAP as a start.AndersBroman1-0/+34
- remove soft deprecated APIs and unused hf. Change-Id: Id00c3dd35f3fc65f543bc29df6d35515c45fe7e1 Reviewed-on: https://code.wireshark.org/review/3715 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-12Update E.212 list to Operational Bulletin No. 1047 (1.III.2014)Pascal Quantin1-9/+28
Change-Id: I6eddb03a0ef541f94fc166a03417a91bb219e235 Reviewed-on: https://code.wireshark.org/review/1081 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-30Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9286 :Pascal Quantin1-30/+37
PLMN 440 20 is now used by SoftBank. While we are at it, update the E.212 list to the latest operational bulletin no. 1041. svn path=/trunk/; revision=54496
2013-12-15Fix [-Wmissing-prototypes]Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=54135