aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nas_eps.c
AgeCommit message (Collapse)AuthorFilesLines
2023-01-31More fussing with items and calls.Martin Mathieson1-1/+1
2023-01-04NAS EPS: upgrade dissector to v17.9.0Pascal Quantin1-1/+5
2022-09-263GPP NAS: update comments after Extended DRX parameters IE changePascal Quantin1-4/+4
2022-09-25NAS EPS: upgrade dissector to v17.8.0Pascal Quantin1-1/+11
2022-09-23NAS EPS: upgrade dissector to v17.7.0Pascal Quantin1-13/+381
2022-04-07nas_eps: Fix typo in function nameStig Bjørlykke1-6/+6
Fix typo in dissect_nas_eps_esm_msg().
2021-12-19Replace g_snprintf() with snprintf() (dissectors)João Valverde1-2/+2
Use macros from inttypes.h with format strings.
2021-12-03epan: Remove STR_ASCII and STR_UNICODEJoão Valverde1-2/+2
These display bases work to replace unprintable characters so the name is a misnomer. In addition they are the same option and this display behaviour is not something that is configurable. This does not affect encodings because all our internal text strings need to be valid UTF-8 and the source encoding is specified using ENC_*. Remove the assertion for valid UTF-8 in proto.c because tvb_get_*_string() must return a valid UTF-8 string, always, and we don't need to assert that, it is expensive.
2021-07-21First pass pinfo->pool conversionEvan Huus1-1/+1
Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure. I also tweaked a few of the docs which got caught up.
2021-05-16NAS EPS: use newly introduced E212_GUMMEIPascal Quantin1-1/+1
2021-02-08NAS: Put decoded user data in the top treeStig Bjørlykke1-3/+3
Decoded user data as IP or Ethernet belongs in the top tree.
2021-02-03Make more functions and vars static.Martin Mathieson1-2/+2
No contentious cases in this batch.
2021-01-20NAS EPS: fix display of IPv6 interface identifierPascal Quantin1-7/+11
Do not use FT_IPV6 as an interface identifier could be wrongly identified as an IPv4-Compatible IPv6 Address format by inet_ntop() and displayed as such.
2020-12-30NAS EPS: use equivalent common tfsMartin Mathieson1-31/+27
From ./tools/check_tfs.py epan/dissectors/packet-nas_eps.c emm_applicable_not_applicable - could have used tfs_applicable_not_applicable from tfs.c instead: {"Applicable", "Not Applicable"} (capitalisation differs)
2020-12-23NAS EPS: upgrade dissector to v16.7.0Pascal Quantin1-35/+37
2020-12-10Introduce ENC_BCD_ODD_NUM_DIG in order to handle odd number of digitsAnders Broman1-13/+5
2020-11-22NAS 5GS: upgrade dissection of remaining 5GMM IEs to v16.6.0Pascal Quantin1-10/+11
- Ciphering key data - Control plane service type - MICO indication - MA PDU session information - Mapped NSSAI - Mobile station classmark 2 - Supported codecs - Payload container - Payload container type - Rejected NSSAI - Release assistance indication - Request type - UE radio capability ID deletion indication - Truncated 5G-S-TMSI configuration - WUS assistance information - NB-N1 mode DRX parameters - Additional configuration indication
2020-11-14NAS EPS: upgrade dissector to v16.6.0Pascal Quantin1-154/+382
2020-11-14NAS EPS: fix inverted description of 2 N1 UE network capability IE fieldsPascal Quantin1-2/+2
2020-11-13NAS-EPS: remove an extra spare bitPascal Quantin1-2/+1
It has been replaced by the 15 bearers capability during R15 development
2020-10-14Create a cross protocol filter 3gpp.tmsiAnders Broman1-2/+5
It can be useful to track a "call" trough multiple protocols to make that easier create a cross protocol filter, more may come.
2020-09-28Add some more string encodings.Guy Harris1-1/+1
Add an encoding for "unpacked" 3GPP TS 23.038 7-bit strings, in which each code position is in a byte of its own, rather than with the code positions packed into 7 bits. Rename the packed encoding to explicitly indicate that it's packed. Add an encoding for ETSI TS 102 221 Annex A strings. Use the new encodings.
2020-09-24NAS EPS: fix dissection of IPv6 PDN addressPascal Quantin1-5/+5
Closes #16870
2020-06-19Fix the type of arrays of pointers to hf_ values for bitfield routines.Guy Harris1-25/+25
The static arrays are supposed to be arrays of const pointers to int, not arrays of non-const pointers to const int. Fixing that means some bugs (scribbling on what's *supposed* to be a const array) will be caught (see packet-ieee80211-radiotap.c for examples, the first of which inspired this change and the second of which was discovered while testing compiles with this change), and removes the need for some annoying casts. Also make some of those arrays static while we're at it. Update documentation and dissector-generator tools. Change-Id: I789da5fc60aadc15797cefecfd9a9fbe9a130ccc Reviewed-on: https://code.wireshark.org/review/37517 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-27Add string encoding values for various BCD encodings, and use them.Guy Harris1-2/+1
Add some ENC_ values for various flavors of packed BCD, and use that instead of explicitly calling tvb_bcd_dig_to_wmem_packet_str() and adding the result. Change-Id: I07511d9d09c9231b610c121cd6ffb3b16fb017a9 Reviewed-on: https://code.wireshark.org/review/36952 Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-07NAS EPS: display remote UE context IPv6 prefix as IPv6 addressPascal Quantin1-3/+8
Change-Id: Ia116f2537e4ecec49013ffa4e3243b682fa9475f Reviewed-on: https://code.wireshark.org/review/36737 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-07nas-eps: Display interface identifier for the IPv6 lla as IPv6Anders Broman1-4/+7
Change-Id: Ia82085f94a1de7eeea4cecdbc8f060302ae18ed5 Reviewed-on: https://code.wireshark.org/review/36732 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-12GTPv2: Dissect Core Network Restrictions and UE Radio Capability ID.Anders Broman1-1/+29
Change-Id: I91714384688a554cbca82a0ae887e18f6304e0c1 Reviewed-on: https://code.wireshark.org/review/36379 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-11NAS 5GS: Dissect more IEsAnders Broman1-12/+14
Change-Id: I79016ef7791ee7d535861222168e3e2f244ef6f4 Reviewed-on: https://code.wireshark.org/review/36075 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-01-18NAS-EPS: add an option to dissect user data container as non IPPascal Quantin1-21/+52
A preference allows the user to decide whether the user data container payload should be dissected as IP, non IP or not dissected. For non IP, another preference allows to specify the name of the sub dissector to be called. Bug: 16332 Change-Id: I1bfd24eb734d57bff54d99362a90f563751270c6 Reviewed-on: https://code.wireshark.org/review/35857 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-09-25 NAS EPS: unify spare bits filtersPascal Quantin1-11/+5
Change-Id: Iedcc6480e1cd0cf2dc0461affd41fffb29daac08 Reviewed-on: https://code.wireshark.org/review/34616 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-09-25NAS-EPS: Add dissection of 9.9.3.57 N1 UE network capability.Anders Broman1-2/+63
Change-Id: If5b7992c245db5e936ed1478640e11399b69fc04 Reviewed-on: https://code.wireshark.org/review/34610 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-23NAS EPS: fix compile error on older GCCJoakim Karlsson1-1/+1
error: variable ‘handle’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] Change-Id: I2c08b9f34171dfb9fc31b1651d1e66a268274b6d Reviewed-on: https://code.wireshark.org/review/33335 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-05-23NAS EPS: catch exception when using ESM data container heuristicPascal Quantin1-19/+23
This way if we try to decode non IP data as IP (due to preference setting), this does not prevent the end of the packet from being dissected. While we are at it, let's improve the heuristics. Change-Id: Ic5b76cd84554fcbd10c3cf59294783933196163a Reviewed-on: https://code.wireshark.org/review/33331 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-04-26GTPv2: Add decoding of more IEsAnders Broman1-2/+2
Bug: 15724 Change-Id: I5a2b017eff3b245189c92f9b4500d4e30750a035 Reviewed-on: https://code.wireshark.org/review/32983 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-23NAS-EPS: Use ...bitmask_list() for EPS network feature support IE.Anders Broman1-54/+56
Change-Id: I711506a214fad8b94ac84d5096fafb448157f9c5 Reviewed-on: https://code.wireshark.org/review/32886 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-04epan: Convert our PROTO_ITEM_ macros to inline functions.Gerald Combs1-1/+1
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-28NAS EPS: upgrade dissector to v15.6.0Pascal Quantin1-2/+1
It only clarified the encoding used for URN, so remove the corresponding comment. Change-Id: Idbe7e325242c495123df3d8f5babfae32b05a36d Reviewed-on: https://code.wireshark.org/review/32606 Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-02-06NAS EPS: get rid of a global variablePascal Quantin1-12/+7
Change-Id: Ib2d4c5d7b8e2c754c946829843174a83e11fdd6d Reviewed-on: https://code.wireshark.org/review/31917 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2018-12-28NAS EPS: upgrade dissector to v15.5.0Pascal Quantin1-4/+18
Change-Id: I3464365a821e92f02e601304552823d24cf11c35 Reviewed-on: https://code.wireshark.org/review/31227 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-12-18gtpv2: Update Security Capability in MM ContextJoakim Karlsson1-1/+1
According to TS 29.274, ch8.38. the UE NR security capability coding is specified in clause 9.9.3.53 of 3GPP TS 24.501 Change-Id: I4e5352bf7a5c75a3766b2d1162d8d85c3566da86 Reviewed-on: https://code.wireshark.org/review/31074 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-08NAS EPS: update ciphering heuristic check for 15 EPS bearers contextsPascal Quantin1-6/+5
Change-Id: I8c413420f231a65121cf13df7bd28fe066b606a6 Reviewed-on: https://code.wireshark.org/review/30539 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-10-25nas5gs: Improve dissection of Mapped EPS bearer contexts.AndersBroman1-3/+3
Change-Id: I7be662efbf2f634f8974cd080c3f38705a74d1a0 Reviewed-on: https://code.wireshark.org/review/30378 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-10-09NAS EPS: upgrade dissector to v15.4.0Pascal Quantin1-18/+14
Change-Id: I7c392269b4f6ec38d12b2f6d637276b4e6a3c8c0 Reviewed-on: https://code.wireshark.org/review/30093 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-28NAS EPS: add subtrees for extended emergency numbers and ciphered data setsPascal Quantin1-21/+37
Change-Id: I8c1fcf960ad058f25b24b796fecf1ff08eb78f7a Reviewed-on: https://code.wireshark.org/review/28499 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22NAS EPS: fix wrong operator.Dario Lombardo1-1/+1
Change-Id: I50f9c1762338f081ff75b2981e8f49010948580c Reviewed-on: https://code.wireshark.org/review/28391 Reviewed-by: Dario Lombardo <lomato@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22NAS EPS: upgrade dissector to v15.3.0Pascal Quantin1-38/+482
Change-Id: I85c3defb81eb65622e0bd124fc4aef4bdbc89822 Reviewed-on: https://code.wireshark.org/review/28390 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-12NAS-5GS: Update towards spec 2.0.0AndersBroman1-1/+1
Change-Id: I31b1dda0f06bf1b719dc949dfd1a44c151f452b9 Reviewed-on: https://code.wireshark.org/review/28217 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-30NAS EPS: fix dissection of UE security capability IEPascal Quantin1-4/+0
Change-Id: Ie1a749eb2abb522aadec06a01baa10ba2211443b Reviewed-on: https://code.wireshark.org/review/27214 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-04-23NAS EPS: chack the protocol discriminator used in the security headerPascal Quantin1-12/+16
Change-Id: Idc82f182190adb6e87d2f796ca7acb9bf6b88443 Reviewed-on: https://code.wireshark.org/review/27092 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>