Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
5b365a37
Commit
5b365a37
authored
Oct 07, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Request Type IE handling improvement
parent
797e78e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
src/lib/nas/enums.hpp
src/lib/nas/enums.hpp
+0
-1
src/ue/nas/mm/transport.cpp
src/ue/nas/mm/transport.cpp
+9
-1
src/ue/nas/sm/transport.cpp
src/ue/nas/sm/transport.cpp
+6
-5
No files found.
src/lib/nas/enums.hpp
View file @
5b365a37
...
@@ -632,7 +632,6 @@ enum class ERequestType
...
@@ -632,7 +632,6 @@ enum class ERequestType
INITIAL_EMERGENCY_REQUEST
=
0b011
,
INITIAL_EMERGENCY_REQUEST
=
0b011
,
EXISTING_EMERGENCY_PDU_SESSION
=
0b100
,
EXISTING_EMERGENCY_PDU_SESSION
=
0b100
,
MODIFICATION_REQUEST
=
0b101
,
MODIFICATION_REQUEST
=
0b101
,
RESERVED
=
0b111
,
};
};
enum
class
EAllowedType
enum
class
EAllowedType
...
...
src/ue/nas/mm/transport.cpp
View file @
5b365a37
...
@@ -46,6 +46,13 @@ void NasMm::receiveDlNasTransport(const nas::DlNasTransport &msg)
...
@@ -46,6 +46,13 @@ void NasMm::receiveDlNasTransport(const nas::DlNasTransport &msg)
return
;
return
;
}
}
if
(
msg
.
payloadContainer
.
data
.
length
()
==
0
)
{
m_logger
->
err
(
"Empty payload container received with type[%d]"
,
(
int
)
msg
.
payloadContainerType
.
payloadContainerType
);
return
;
}
OctetView
buff
{
msg
.
payloadContainer
.
data
.
data
(),
static_cast
<
size_t
>
(
msg
.
payloadContainer
.
data
.
length
())};
OctetView
buff
{
msg
.
payloadContainer
.
data
.
data
(),
static_cast
<
size_t
>
(
msg
.
payloadContainer
.
data
.
length
())};
auto
nasMessage
=
nas
::
DecodeNasMessage
(
buff
);
auto
nasMessage
=
nas
::
DecodeNasMessage
(
buff
);
...
@@ -131,7 +138,8 @@ EProcRc NasMm::deliverUlTransport(const nas::UlNasTransport &msg, ENasTransportH
...
@@ -131,7 +138,8 @@ EProcRc NasMm::deliverUlTransport(const nas::UlNasTransport &msg, ENasTransportH
}
}
// Perform UAC for PDU session establishment and modification
// Perform UAC for PDU session establishment and modification
if
(
hint
==
ENasTransportHint
::
PDU_SESSION_ESTABLISHMENT_REQUEST
||
hint
==
ENasTransportHint
::
PDU_SESSION_MODIFICATION_REQUEST
)
if
(
hint
==
ENasTransportHint
::
PDU_SESSION_ESTABLISHMENT_REQUEST
||
hint
==
ENasTransportHint
::
PDU_SESSION_MODIFICATION_REQUEST
)
{
{
if
(
performUac
()
!=
EUacResult
::
ALLOWED
)
if
(
performUac
()
!=
EUacResult
::
ALLOWED
)
{
{
...
...
src/ue/nas/sm/transport.cpp
View file @
5b365a37
...
@@ -66,12 +66,13 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg)
...
@@ -66,12 +66,13 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg)
nas
::
EncodeNasMessage
(
msg
,
m
.
payloadContainer
.
data
);
nas
::
EncodeNasMessage
(
msg
,
m
.
payloadContainer
.
data
);
m
.
pduSessionId
=
nas
::
IEPduSessionIdentity2
{};
m
.
pduSessionId
=
nas
::
IEPduSessionIdentity2
{};
m
.
pduSessionId
->
value
=
psi
;
m
.
pduSessionId
->
value
=
psi
;
if
(
msg
.
messageType
==
nas
::
EMessageType
::
PDU_SESSION_ESTABLISHMENT_REQUEST
||
msg
.
messageType
==
nas
::
EMessageType
::
PDU_SESSION_MODIFICATION_REQUEST
)
{
m
.
requestType
=
nas
::
IERequestType
{};
m
.
requestType
=
nas
::
IERequestType
{};
m
.
requestType
->
requestType
=
m
.
requestType
->
requestType
=
session
->
isEmergency
?
nas
::
ERequestType
::
INITIAL_EMERGENCY_REQUEST
:
nas
::
ERequestType
::
INITIAL_REQUEST
;
session
->
isEmergency
?
nas
::
ERequestType
::
INITIAL_EMERGENCY_REQUEST
:
nas
::
ERequestType
::
INITIAL_REQUEST
;
if
(
msg
.
messageType
==
nas
::
EMessageType
::
PDU_SESSION_RELEASE_REQUEST
||
msg
.
messageType
==
nas
::
EMessageType
::
PDU_SESSION_RELEASE_COMPLETE
)
{
m
.
requestType
->
requestType
=
nas
::
ERequestType
::
RESERVED
;
}
}
if
(
!
session
->
isEmergency
)
if
(
!
session
->
isEmergency
)
...
...
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