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
ca8b19a2
Commit
ca8b19a2
authored
May 07, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protection of initial NAS messages
parent
a9b7b96c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/lib/nas/utils.hpp
src/lib/nas/utils.hpp
+3
-4
No files found.
src/lib/nas/utils.hpp
View file @
ca8b19a2
...
...
@@ -45,7 +45,7 @@ const char *EnumToString(EPduSessionType v);
template
<
typename
T
>
inline
bool
DeepEqualsIe
(
const
T
&
a
,
const
T
&
b
)
{
OctetString
s1
{},
s2
{}
;
OctetString
s1
,
s2
;
if
constexpr
(
std
::
is_base_of
<
InformationElement1
,
T
>::
value
)
{
EncodeIe1
(
0
,
a
,
s1
);
...
...
@@ -62,7 +62,7 @@ inline bool DeepEqualsIe(const T &a, const T &b)
template
<
typename
T
>
inline
bool
DeepEqualsV
(
const
T
&
a
,
const
T
&
b
)
{
OctetString
s1
{},
s2
{}
;
OctetString
s1
,
s2
;
T
::
Encode
(
a
,
s1
);
T
::
Encode
(
b
,
s2
);
return
s1
==
s2
;
...
...
@@ -87,8 +87,7 @@ inline T DeepCopyIe(const T &a)
}
}
template
<
typename
T
>
inline
std
::
unique_ptr
<
NasMessage
>
DeepCopyMsg
(
const
T
&
msg
)
inline
std
::
unique_ptr
<
NasMessage
>
DeepCopyMsg
(
const
NasMessage
&
msg
)
{
OctetString
stream
;
...
...
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