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
c8a6ae48
Commit
c8a6ae48
authored
May 11, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RLS improvements
parent
a325feec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
src/lib/rls/rls_pdu.cpp
src/lib/rls/rls_pdu.cpp
+15
-0
src/lib/rls/rls_pdu.hpp
src/lib/rls/rls_pdu.hpp
+3
-3
No files found.
src/lib/rls/rls_pdu.cpp
View file @
c8a6ae48
...
...
@@ -91,6 +91,21 @@ void EncodeRlsMessage(const RlsMessage &msg, OctetString &stream)
auto
&
m
=
(
const
RlsHeartBeatAck
&
)
msg
;
stream
.
appendOctet4
(
m
.
dbm
);
}
else
if
(
msg
.
msgType
==
EMessageType
::
PDU_TRANSMISSION
)
{
auto
&
m
=
(
const
RlsPduTransmission
&
)
msg
;
stream
.
appendOctet
(
static_cast
<
int8_t
>
(
m
.
pduType
));
stream
.
appendOctet4
(
m
.
pduId
);
stream
.
appendOctet4
(
m
.
payload
);
stream
.
append
(
m
.
pdu
);
}
else
if
(
msg
.
msgType
==
EMessageType
::
PDU_TRANSMISSION_ACK
)
{
auto
&
m
=
(
const
RlsPduTransmissionAck
&
)
msg
;
stream
.
appendOctet4
(
static_cast
<
uint32_t
>
(
m
.
pduIds
.
size
()));
for
(
auto
pduId
:
m
.
pduIds
)
stream
.
appendOctet4
(
pduId
);
}
}
std
::
unique_ptr
<
RlsMessage
>
DecodeRlsMessage
(
const
OctetView
&
stream
)
...
...
src/lib/rls/rls_pdu.hpp
View file @
c8a6ae48
...
...
@@ -105,9 +105,9 @@ struct RlsPduDelivery : RlsMessage
struct
RlsPduTransmission
:
RlsMessage
{
EPduType
pduType
{};
OctetString
pdu
{};
uint32_t
payload
{};
uint32_t
pduId
{};
uint32_t
payload
{};
OctetString
pdu
{};
explicit
RlsPduTransmission
(
uint64_t
sti
)
:
RlsMessage
(
EMessageType
::
PDU_TRANSMISSION
,
sti
)
{
...
...
@@ -116,7 +116,7 @@ struct RlsPduTransmission : RlsMessage
struct
RlsPduTransmissionAck
:
RlsMessage
{
std
::
vector
<
uint32_t
>
sequence
s
;
std
::
vector
<
uint32_t
>
pduId
s
;
explicit
RlsPduTransmissionAck
(
uint64_t
sti
)
:
RlsMessage
(
EMessageType
::
PDU_TRANSMISSION_ACK
,
sti
)
{
...
...
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