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
24241e1b
Commit
24241e1b
authored
Oct 05, 2022
by
Angelo Athanassopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSEA - Log - Change the debug to trace
parent
99c77d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
+13
-13
No files found.
openair3/NAS/COMMON/ESM/MSG/PduSessionEstablishmentAccept.c
View file @
24241e1b
...
...
@@ -88,12 +88,12 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
while
(
offset
<
msg_length
)
{
switch
(
psea_iei
)
{
case
IEI_5GSM_CAUSE
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received 5GSM Cause IEI
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received 5GSM Cause IEI
\n
"
);
offset
++
;
break
;
case
IEI_PDU_ADDRESS
:
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received PDU Address IE
\n
"
);
LOG_
T
(
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
++
);
...
...
@@ -105,7 +105,7 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
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
"
,
LOG_
T
(
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
,
...
...
@@ -118,54 +118,54 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
break
;
case
IEI_RQ_TIMER_VALUE
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received RQ timer value IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received RQ timer value IE
\n
"
);
offset
++
;
/* TS 24.008 10.5.7.3 */
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_SNSSAI
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received S-NSSAI IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received S-NSSAI IE
\n
"
);
uint8_t
snssai_length
=
*
(
buffer
+
offset
);
offset
+=
(
snssai_length
+
sizeof
(
snssai_length
));
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_ALWAYSON_PDU
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Always-on PDU Session indication IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Always-on PDU Session indication IE
\n
"
);
offset
++
;
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_MAPPED_EPS
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Mapped EPS bearer context IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Mapped EPS bearer context IE
\n
"
);
uint16_t
mapped_eps_length
=
htons
(
*
(
uint16_t
*
)(
buffer
+
offset
));
offset
+=
mapped_eps_length
;
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_EAP_MSG
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received EAP message IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received EAP message IE
\n
"
);
uint16_t
eap_length
=
htons
(
*
(
uint16_t
*
)(
buffer
+
offset
));
offset
+=
(
eap_length
+
sizeof
(
eap_length
));
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_AUTH_QOS_DESC
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Authorized QoS flow descriptions IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Authorized QoS flow descriptions IE
\n
"
);
psea_msg
.
qos_fd_ie
.
length
=
htons
(
*
(
uint16_t
*
)(
buffer
+
offset
));
offset
+=
(
psea_msg
.
qos_fd_ie
.
length
+
sizeof
(
psea_msg
.
qos_fd_ie
.
length
));
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_EXT_CONF_OPT
:
/* Ommited */
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Extended protocol configuration options IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received Extended protocol configuration options IE
\n
"
);
psea_msg
.
ext_pp_ie
.
length
=
htons
(
*
(
uint16_t
*
)(
buffer
+
offset
));
offset
+=
(
psea_msg
.
ext_pp_ie
.
length
+
sizeof
(
psea_msg
.
ext_pp_ie
.
length
));
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
case
IEI_DNN
:
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received DNN IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Received DNN IE
\n
"
);
psea_msg
.
dnn_ie
.
dnn_length
=
*
(
buffer
+
offset
++
);
uint8_t
i
=
0
;
char
apn
[
20
];
...
...
@@ -175,13 +175,13 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
++
i
;
}
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - APN: %s
\n
"
,
apn
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - APN: %s
\n
"
,
apn
);
offset
+=
psea_msg
.
dnn_ie
.
dnn_length
;
psea_iei
=
*
(
buffer
+
offset
++
);
break
;
default:
LOG_
D
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Not known IE
\n
"
);
LOG_
T
(
NAS
,
"PDU SESSION ESTABLISHMENT ACCEPT - Not known IE
\n
"
);
offset
=
msg_length
;
break
;
}
...
...
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