Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
e9011b79
Commit
e9011b79
authored
Mar 08, 2022
by
Fang-WANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add UE policy container decoder
parent
e59120ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/nas/ies/Payload_Container.cpp
src/nas/ies/Payload_Container.cpp
+14
-0
No files found.
src/nas/ies/Payload_Container.cpp
View file @
e9011b79
...
...
@@ -154,6 +154,20 @@ int Payload_Container::encode2buffer(uint8_t* buf, int len) {
//------------------------------------------------------------------------------
int
Payload_Container
::
decodefrombuffer
(
uint8_t
*
buf
,
int
len
,
bool
is_option
)
{
// 24.501 g80
// In this version of the protocol, the UE can only include the Payload container
// IE in the REGISTRATION REQUEST message to carry a payload of type "UE policy container".
// "UE policy container", the UE policy container in the Payload container IE is
// handled in the UE policy delivery procedures specified in Annex D.
int
decoded_size
=
0
;
length
=
*
buf
;
decoded_size
++
;
length
|=
(
*
(
buf
+
decoded_size
))
<<
8
;
//should decode UE STATE INDICATION here
decoded_size
+=
length
;
return
decoded_size
;
}
//------------------------------------------------------------------------------
...
...
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