Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
c2397656
Commit
c2397656
authored
Dec 06, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PTI issue
parent
24987880
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
44 deletions
+7
-44
src/nas/ies/ProcedureTransactionIdentity.c
src/nas/ies/ProcedureTransactionIdentity.c
+5
-41
src/nas/ies/ProcedureTransactionIdentity.h
src/nas/ies/ProcedureTransactionIdentity.h
+1
-2
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+1
-1
No files found.
src/nas/ies/ProcedureTransactionIdentity.c
View file @
c2397656
...
...
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <stdint.h>
#include "common_types.h"
#include "TLVEncoder.h"
#include "TLVDecoder.h"
#include "ProcedureTransactionIdentity.h"
...
...
@@ -30,54 +31,17 @@
int
encode_procedure_transaction_identity
(
ProcedureTransactionIdentity
proceduretransactionidentity
,
uint8_t
iei
,
uint8_t
*
buffer
,
uint32_t
len
)
{
uint32_t
encoded
=
0
;
int
encode_result
;
uint8_t
encoded
=
0
;
CHECK_PDU_POINTER_AND_LENGTH_ENCODER
(
buffer
,
PROCEDURE_TRANSACTION_IDENTITY_MINIMUM_LENGTH
,
len
);
if
((
encode_result
=
encode_bstring
(
proceduretransactionidentity
,
buffer
+
encoded
,
len
-
encoded
))
<
0
)
return
encode_result
;
else
encoded
+=
encode_result
;
ENCODE_U8
(
buffer
+
encoded
,
(
uint8_t
)
proceduretransactionidentity
,
encoded
);
return
encoded
;
/*
uint32_t encoded = 0;
uint8_t bitStream = 0x0;
CHECK_PDU_POINTER_AND_LENGTH_ENCODER (buffer,
PROCEDURE_TRANSACTION_IDENTITY_MINIMUM_LENGTH, len);
if(iei > 0){
bitStream = 0x00 | (iei & 0xf0) | (proceduretransactionidentity & 0x0f);
}
ENCODE_U8(buffer + encoded, bitStream, encoded);
return encoded;
*/
}
int
decode_procedure_transaction_identity
(
ProcedureTransactionIdentity
*
proceduretransactionidentity
,
uint8_t
iei
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
decoded
=
0
;
uint8_t
ielen
=
0
;
int
decode_result
;
if
((
decode_result
=
decode_bstring
(
proceduretransactionidentity
,
ielen
,
buffer
+
decoded
,
len
-
decoded
))
<
0
)
return
decode_result
;
else
decoded
+=
decode_result
;
int
decoded
=
0
;
DECODE_U8
(
buffer
+
decoded
,
proceduretransactionidentity
,
decoded
);
return
decoded
;
/*
int decoded = 0;
uint8_t bitStream = 0x0;
DECODE_U8(buffer + decoded, bitStream, decoded);
if(iei != (bitStream & 0xf0))
return -1;
*proceduretransactionidentity = bitStream & 0x0f;
return decoded;
*/
}
src/nas/ies/ProcedureTransactionIdentity.h
View file @
c2397656
...
...
@@ -20,12 +20,11 @@
*/
#include <stdint.h>
#include "bstrlib.h"
#define PROCEDURE_TRANSACTION_IDENTITY_MINIMUM_LENGTH 1
#define PROCEDURE_TRANSACTION_IDENTITY_MAXIMUM_LENGTH 1
typedef
bstring
ProcedureTransactionIdentity
;
typedef
uint8_t
ProcedureTransactionIdentity
;
int
encode_procedure_transaction_identity
(
ProcedureTransactionIdentity
proceduretransactionidentity
,
uint8_t
iei
,
...
...
src/smf_app/smf_context.cpp
View file @
c2397656
...
...
@@ -3083,7 +3083,7 @@ bool smf_context::handle_pdu_session_update_sm_context_request(
sm_context_req_msg
.
get_pdu_session_id
());
sm_context_rel_req_msg
.
set_snssai
(
sm_context_req_msg
.
get_snssai
());
sm_context_rel_req_msg
.
set_dnn
(
sm_context_req_msg
.
get_dnn
());
sm_context_rel_req_msg
.
set_pti
(
sm_context_re
q_msg
.
get_pti
());
sm_context_rel_req_msg
.
set_pti
(
sm_context_re
sp_pending
->
res
.
get_pti
());
// check if update message contain N2 SM info
if
(
sm_context_req_msg
.
n2_sm_info_is_set
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment