Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
lizhongxiao
OpenXG-RAN
Commits
d355b1a7
Commit
d355b1a7
authored
Oct 05, 2022
by
Angelo Athanassopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSEA - Capture - PDU Address IE
parent
3fee83e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
+25
-0
No files found.
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
View file @
d355b1a7
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
#include "nr_nas_msg_sim.h"
#include "nr_nas_msg_sim.h"
#include "openair2/RRC/NAS/nas_config.h"
#include "openair2/RRC/NAS/nas_config.h"
extern
char
*
baseNetAddress
;
void
capture_pdu_session_establishment_accept
(
uint8_t
*
buffer
,
uint32_t
msg_length
){
void
capture_pdu_session_establishment_accept
(
uint8_t
*
buffer
,
uint32_t
msg_length
){
uint8_t
offset
=
0
;
uint8_t
offset
=
0
;
security_protected_nas_5gs_msg_t
sec_nas_hdr
;
security_protected_nas_5gs_msg_t
sec_nas_hdr
;
...
@@ -90,7 +92,30 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
...
@@ -90,7 +92,30 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
break
;
break
;
case
IEI_PDU_ADDRESS
:
case
IEI_PDU_ADDRESS
:
LOG_D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received PDU Address IE
\n
"
);
psea_msg
.
pdu_addr_ie
.
pdu_length
=
*
(
buffer
+
offset
++
);
psea_msg
.
pdu_addr_ie
.
pdu_type
=
*
(
buffer
+
offset
++
);
if
(
psea_msg
.
pdu_addr_ie
.
pdu_type
==
PDU_SESSION_TYPE_IPV4
)
{
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct1
=
*
(
buffer
+
offset
++
);
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct2
=
*
(
buffer
+
offset
++
);
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct3
=
*
(
buffer
+
offset
++
);
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct4
=
*
(
buffer
+
offset
++
);
nas_getparams
();
sprintf
(
baseNetAddress
,
"%d.%d"
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct1
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct2
);
nas_config
(
1
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct3
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct4
,
"oaitun_ue"
);
LOG_I
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received UE IP: %d.%d.%d.%d
\n
"
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct1
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct2
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct3
,
psea_msg
.
pdu_addr_ie
.
pdu_addr_oct4
);
}
else
{
offset
+=
psea_msg
.
pdu_addr_ie
.
pdu_length
;
}
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
break
;
case
IEI_RQ_TIMER_VALUE
:
/* Ommited */
case
IEI_RQ_TIMER_VALUE
:
/* Ommited */
break
;
break
;
case
IEI_SNSSAI
:
/* Ommited */
case
IEI_SNSSAI
:
/* Ommited */
...
...
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