Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
26
Issues
26
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
4dbc0b92
Commit
4dbc0b92
authored
Jun 28, 2018
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix btlbw.
parent
535cf490
Pipeline
#2572
passed with stages
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
prrt/proto/types/packet.c
prrt/proto/types/packet.c
+2
-8
prrt/proto/types/packet.h
prrt/proto/types/packet.h
+2
-1
No files found.
prrt/proto/types/packet.c
View file @
4dbc0b92
...
...
@@ -200,10 +200,7 @@ void *encode_data_header(void *buf_ptr, const void *payload) {
PrrtPacketField_encode
(
data_payload
,
buf_ptr
,
prrtTimestamp_t
,
timestamp
,
htonl
);
PrrtPacketField_encode
(
data_payload
,
buf_ptr
,
prrtTimedelta_t
,
groupRTprop_us
,
htonl
);
PrrtPacketField_encode
(
data_payload
,
buf_ptr
,
prrtTimestamp_t
,
packetTimeout_us
,
htonl
);
prrtDeliveryRate_t
*
deliveryRate
=
(
prrtDeliveryRate_t
*
)
buf_ptr
;
*
deliveryRate
=
htonl
(
data_payload
->
btlbw
);
buf_ptr
+=
sizeof
(
prrtDeliveryRate_t
);
PrrtPacketField_encode
(
data_payload
,
buf_ptr
,
prrtDeliveryRate_t
,
btlbw
,
htonl
);
return
buf_ptr
;
}
...
...
@@ -294,10 +291,7 @@ void *decode_data_header(void *dstBuffer, const void *srcBuffer) {
PrrtPacketField_decode
(
data_payload
,
dstBuffer
,
prrtTimestamp_t
,
timestamp
,
ntohl
);
PrrtPacketField_decode
(
data_payload
,
dstBuffer
,
prrtTimedelta_t
,
groupRTprop_us
,
ntohl
);
PrrtPacketField_decode
(
data_payload
,
dstBuffer
,
prrtTimedelta_t
,
packetTimeout_us
,
ntohl
);
prrtDeliveryRate_t
*
btlbw
=
(
prrtDeliveryRate_t
*
)
dstBuffer
;
data_payload
->
btlbw
=
ntohl
(
*
btlbw
);
dstBuffer
+=
sizeof
(
prrtDeliveryRate_t
);
PrrtPacketField_decode
(
data_payload
,
dstBuffer
,
prrtDeliveryRate_t
,
btlbw
,
ntohl
);
return
dstBuffer
;
}
...
...
prrt/proto/types/packet.h
View file @
4dbc0b92
...
...
@@ -67,7 +67,8 @@ typedef struct prrtPacketDataPayload {
sizeof(prrtPacketLength_t) + \
sizeof(prrtTimestamp_t) + \
sizeof(prrtTimedelta_t) + \
sizeof(prrtTimestamp_t) )
sizeof(prrtTimestamp_t) + \
sizeof(prrtDeliveryRate_t))
typedef
struct
prrtPacketRedundancyPayload
{
prrtSequenceNumber_t
baseSequenceNumber
;
...
...
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