Skip to content
Snippets Groups Projects

NAS Service Request enc/dec implementation

Open Guido Casati requested to merge nr-ue-nas-service-request into develop
1 unresolved thread

NAS Service Request:

  • encoding
  • decoding
  • unit test

Related to #852

Edited by Guido Casati

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 include_directories(${OPENAIR_DIR}/openair3/NAS/COMMON/UTIL)
2
3 add_library(fgs_lib OBJECT
4 fgs_service_request.c
5 ${NAS_SRC}COMMON/IES/NasKeySetIdentifier.c
6 ${NAS_SRC}COMMON/IES/FGSMobileIdentity.c
7 ${NAS_SRC}COMMON/UTIL/TLVEncoder.c
  • Guido Casati added 2 commits

    added 2 commits

    • 633044ac - Refactor TLVEncoder
    • 57382a67 - Add test for NAS Service Request enc/dec

    Compare with previous version

  • changed milestone to %REVIEW_IN_PROGRESS

  • Cédric Roux
  • Cédric Roux
  • Cédric Roux
  • Cédric Roux
  • Cédric Roux
    • Resolved by Cédric Roux

      Seems to me that proper checking of input data for decoding is not super good. Also checks on buffer size for encoding don't seem good. Reading a bit more the NAS it seems that it's the same for previous code, so I would say it's okay to accept this new message, which is similar to what is already there (provided I understood things correctly).

      At some point we will need to do something better. (Thinking in terms of security.)

  • Guido Casati added 71 commits

    added 71 commits

    • 57382a67...220d851d - 62 commits from branch develop
    • 010627ce - Rename FGS Service Request/Reject/Accept type for consistency with FGS naming style
    • c47570f3 - Cleanup test5Gnas.c and MAC references in NR_NAS_defs.h (undefined functions prototypes)
    • 680b7544 - Refactor NAS Key Set Identifier enc/dec functions
    • 0378816d - Add check on minimum length in encode_5gs_mobile_identity
    • 4c190cf7 - Add include for stdbool.h in FGSMobileIdentity.c
    • 4b8d47dd - Add NAS Service Request enc/dec functions
    • 35c44d0f - Refactor TLVDecoder macros
    • 34a32b78 - Refactor TLVEncoder
    • f9e3c5e0 - Add test for NAS Service Request enc/dec

    Compare with previous version

  • Addressed most of the comments. Remaining to address: error handling in enc/dec functions and security context check.

  • Guido Casati mentioned in commit 22255636

    mentioned in commit 22255636

  • Guido Casati added 102 commits

    added 102 commits

    • f9e3c5e0...f54ca571 - 93 commits from branch develop
    • 139289c3 - Rename FGS Service Request/Reject/Accept type for consistency with FGS naming style
    • d364dfbb - Cleanup test5Gnas.c and MAC references in NR_NAS_defs.h (undefined functions prototypes)
    • 8aa86107 - Refactor NAS Key Set Identifier enc/dec functions
    • 0f2a31bc - Add check on minimum length in encode_5gs_mobile_identity
    • 8ed768c9 - Add include for stdbool.h in FGSMobileIdentity.c
    • 5fd3a38c - Add NAS Service Request enc/dec functions
    • 3821fd71 - Refactor TLVDecoder macros
    • a432aca7 - Refactor TLVEncoder
    • b7112dd6 - Add test for NAS Service Request enc/dec

    Compare with previous version

  • OAI RAN-Container-Parent build (11041): failed (https://jenkins-oai.eurecom.fr/job/RAN-Container-Parent/11041/)

    List of failing test stages:

  • Addressed the first round of review.

  • Guido Casati mentioned in commit 3861d218

    mentioned in commit 3861d218

  • Guido Casati added 63 commits

    added 63 commits

    • b7112dd6...68191088 - 54 commits from branch develop
    • 8a7321db - Rename FGS Service Request/Reject/Accept type for consistency with FGS naming style
    • 5c3953b6 - Cleanup test5Gnas.c and MAC references in NR_NAS_defs.h (undefined functions prototypes)
    • bf776113 - Refactor NAS Key Set Identifier enc/dec functions
    • 29220a60 - Add check on minimum length in encode_5gs_mobile_identity
    • c817c44a - Add include for stdbool.h in FGSMobileIdentity.c
    • 1c4e1029 - Add NAS Service Request enc/dec functions
    • ad412028 - Refactor TLVDecoder macros
    • 6faa5d30 - Refactor TLVEncoder
    • 44c9dec6 - Add test for NAS Service Request enc/dec

    Compare with previous version

  • Guido Casati marked this merge request as draft

    marked this merge request as draft

  • Guido Casati marked this merge request as ready

    marked this merge request as ready

  • Guido Casati mentioned in merge request !2725 (merged)

    mentioned in merge request !2725 (merged)

  • Guido Casati mentioned in commit 5eca908b

    mentioned in commit 5eca908b

  • changed milestone to %OK_TO_BE_MERGED

  • mentioned in commit 2fad0001

  • mentioned in merge request !3148 (merged)

  • Robert Schmidt mentioned in commit 054506f5

    mentioned in commit 054506f5

  • Robert Schmidt merged with merge request !3148 (merged)

    merged with merge request !3148 (merged)

  • mentioned in commit e03c15e8

  • Please register or sign in to reply
    Loading