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
b05f5484
Commit
b05f5484
authored
Jan 07, 2022
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
12707188
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/ue/rls/udp_layer.cpp
src/ue/rls/udp_layer.cpp
+2
-2
src/ue/rls/udp_layer.hpp
src/ue/rls/udp_layer.hpp
+1
-1
src/ue/task.cpp
src/ue/task.cpp
+1
-1
No files found.
src/ue/rls/udp_layer.cpp
View file @
b05f5484
...
...
@@ -62,9 +62,9 @@ void RlsUdpLayer::send(int cellId, const rls::RlsMessage &msg)
}
}
void
RlsUdpLayer
::
receiveRlsPdu
(
const
InetAddress
&
addr
,
const
OctetString
&
pdu
)
void
RlsUdpLayer
::
receiveRlsPdu
(
const
InetAddress
&
addr
,
uint8_t
*
buffer
,
size_t
size
)
{
auto
msg
=
rls
::
DecodeRlsMessage
(
OctetView
{
pdu
});
auto
msg
=
rls
::
DecodeRlsMessage
(
OctetView
{
buffer
,
size
});
if
(
msg
==
nullptr
)
{
m_logger
->
err
(
"Unable to decode RLS message"
);
...
...
src/ue/rls/udp_layer.hpp
View file @
b05f5484
...
...
@@ -57,7 +57,7 @@ class RlsUdpLayer
public:
void
checkHeartbeat
();
void
send
(
int
cellId
,
const
rls
::
RlsMessage
&
msg
);
void
receiveRlsPdu
(
const
InetAddress
&
address
,
const
OctetString
&
pdu
);
void
receiveRlsPdu
(
const
InetAddress
&
address
,
uint8_t
*
buffer
,
size_t
size
);
};
}
// namespace nr::ue
src/ue/task.cpp
View file @
b05f5484
...
...
@@ -95,7 +95,7 @@ void UeTask::onLoop()
{
InetAddress
peer
;
size_t
n
=
fdBase
->
receive
(
fdId
,
m_buffer
.
get
(),
BUFFER_SIZE
,
peer
);
rlsUdp
->
receiveRlsPdu
(
peer
,
OctetString
::
FromArray
(
m_buffer
.
get
(),
n
)
);
rlsUdp
->
receiveRlsPdu
(
peer
,
m_buffer
.
get
(),
n
);
}
}
...
...
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