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
spbro
OpenXG-RAN
Commits
99c77d6f
Commit
99c77d6f
authored
Oct 05, 2022
by
Angelo Athanassopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new function to capture PSEA message
parent
c31b0f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
36 deletions
+2
-36
openair3/NAS/NR_UE/nr_nas_msg_sim.c
openair3/NAS/NR_UE/nr_nas_msg_sim.c
+2
-36
No files found.
openair3/NAS/NR_UE/nr_nas_msg_sim.c
View file @
99c77d6f
...
...
@@ -909,42 +909,8 @@ void *nas_nrue_task(void *args_p)
LOG_I
(
NAS
,
"Send NAS_UPLINK_DATA_REQ message(PduSessionEstablishRequest)
\n
"
);
}
}
else
if
(
msg_type
==
FGS_PDU_SESSION_ESTABLISHMENT_ACC
){
uint8_t
offset
=
0
;
uint8_t
*
payload_container
=
NULL
;
offset
+=
SECURITY_PROTECTED_5GS_NAS_MESSAGE_HEADER_LENGTH
;
uint16_t
payload_container_length
=
htons
(((
dl_nas_transport_t
*
)(
pdu_buffer
+
offset
))
->
payload_container_length
);
if
((
payload_container_length
>=
PAYLOAD_CONTAINER_LENGTH_MIN
)
&&
(
payload_container_length
<=
PAYLOAD_CONTAINER_LENGTH_MAX
))
{
offset
+=
(
PLAIN_5GS_NAS_MESSAGE_HEADER_LENGTH
+
3
);
}
if
(
offset
<
NAS_CONN_ESTABLI_CNF
(
msg_p
).
nasMsg
.
length
)
{
payload_container
=
pdu_buffer
+
offset
;
}
offset
=
0
;
uint8_t
pdu_id
=
*
(
pdu_buffer
+
14
);
while
(
offset
<
payload_container_length
)
{
// Fixme: this is not good 'type' 0x29 searching in TLV like structure
// AND fix dirsty code copy hereafter of the same!!!
if
(
*
(
payload_container
+
offset
)
==
0x29
)
{
// PDU address IEI
if
((
*
(
payload_container
+
offset
+
1
)
==
0x05
)
&&
(
*
(
payload_container
+
offset
+
2
)
==
0x01
))
{
// IPV4
nas_getparams
();
sprintf
(
baseNetAddress
,
"%d.%d"
,
*
(
payload_container
+
offset
+
3
),
*
(
payload_container
+
offset
+
4
));
int
third_octet
=
*
(
payload_container
+
offset
+
5
);
int
fourth_octet
=
*
(
payload_container
+
offset
+
6
);
LOG_I
(
NAS
,
"Received PDU Session Establishment Accept, UE IP: %d.%d.%d.%d
\n
"
,
*
(
payload_container
+
offset
+
3
),
*
(
payload_container
+
offset
+
4
),
*
(
payload_container
+
offset
+
5
),
*
(
payload_container
+
offset
+
6
));
nas_config
(
1
,
third_octet
,
fourth_octet
,
"oaitun_ue"
);
}
}
if
(
*
(
payload_container
+
offset
)
==
0x79
)
{
uint8_t
qfi
=
*
(
payload_container
+
offset
+
3
);
set_qfi_pduid
(
qfi
,
pdu_id
);
break
;
}
offset
++
;
}
}
capture_pdu_session_establishment_accept
(
pdu_buffer
,
NAS_CONN_ESTABLI_CNF
(
msg_p
).
nasMsg
.
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