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
68a4fbd2
Commit
68a4fbd2
authored
Apr 26, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE authentication procedure improvements
parent
82828c1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
src/ue/nas/usim/sqn_mng.cpp
src/ue/nas/usim/sqn_mng.cpp
+3
-8
src/ue/nas/usim/sqn_mng.hpp
src/ue/nas/usim/sqn_mng.hpp
+1
-2
No files found.
src/ue/nas/usim/sqn_mng.cpp
View file @
68a4fbd2
...
...
@@ -35,15 +35,10 @@ uint64_t SqnManager::getIndFromSqn(uint64_t sqn) const
uint64_t
SqnManager
::
getSeqMs
()
const
{
return
getSeqFromSqn
(
getSqn
Value
());
return
getSeqFromSqn
(
getSqn
Ms
());
}
uint64_t
&
SqnManager
::
getSqnRef
()
{
return
*
std
::
max_element
(
m_sqnArr
.
begin
(),
m_sqnArr
.
end
());
}
uint64_t
SqnManager
::
getSqnValue
()
const
uint64_t
SqnManager
::
getSqnMs
()
const
{
return
*
std
::
max_element
(
m_sqnArr
.
begin
(),
m_sqnArr
.
end
());
}
...
...
@@ -72,7 +67,7 @@ bool SqnManager::checkSqn(const OctetString &sqn)
OctetString
SqnManager
::
getSqn
()
const
{
return
OctetString
::
FromOctet8
(
getSqn
Value
()).
subCopy
(
2
);
return
OctetString
::
FromOctet8
(
getSqn
Ms
()).
subCopy
(
2
);
}
}
// namespace nr::ue
src/ue/nas/usim/sqn_mng.hpp
View file @
68a4fbd2
...
...
@@ -32,8 +32,7 @@ class SqnManager
[[
nodiscard
]]
uint64_t
getSeqFromSqn
(
uint64_t
sqn
)
const
;
[[
nodiscard
]]
uint64_t
getIndFromSqn
(
uint64_t
sqn
)
const
;
[[
nodiscard
]]
uint64_t
getSeqMs
()
const
;
[[
nodiscard
]]
uint64_t
&
getSqnRef
();
[[
nodiscard
]]
uint64_t
getSqnValue
()
const
;
[[
nodiscard
]]
uint64_t
getSqnMs
()
const
;
bool
checkSqn
(
uint64_t
sqn
);
public:
...
...
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