Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LARN
PRRT
Commits
02539561
Commit
02539561
authored
Mar 15, 2018
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BtlBw bindings.
parent
06afdefd
Pipeline
#2060
failed with stages
in 22 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
21 deletions
+5
-21
prrt/proto/bbr.c
prrt/proto/bbr.c
+1
-1
prrt/proto/bbr.h
prrt/proto/bbr.h
+2
-2
prrt/proto/channelStateInformation.c
prrt/proto/channelStateInformation.c
+0
-10
prrt/proto/channelStateInformation.h
prrt/proto/channelStateInformation.h
+0
-7
prrt/proto/socket.c
prrt/proto/socket.c
+2
-1
No files found.
prrt/proto/bbr.c
View file @
02539561
...
...
@@ -269,7 +269,7 @@ uint32_t BBR_getCwnd(BBR* bbr)
return
bbr
->
cwnd
;
}
uint32
_t
BBR_getBtlBw
(
BBR
*
bbr
)
prrtDeliveryRate
_t
BBR_getBtlBw
(
BBR
*
bbr
)
{
return
bbr
->
bw
;
}
...
...
prrt/proto/bbr.h
View file @
02539561
...
...
@@ -66,7 +66,7 @@ typedef struct bbr {
uint32_t
send_quantum
;
uint32
_t
bw
;
prrtDeliveryRate
_t
bw
;
WindowedFilter
*
btlBwFilter
;
}
BBR
;
...
...
@@ -77,7 +77,7 @@ void BBR_destroy(BBR* bbr);
uint32_t
BBR_getPacingRate
(
BBR
*
bbr
);
uint32_t
BBR_getCwnd
(
BBR
*
bbr
);
uint32
_t
BBR_getBtlBw
(
BBR
*
bbr
);
prrtDeliveryRate
_t
BBR_getBtlBw
(
BBR
*
bbr
);
uint32_t
BBR_getRTProp
(
BBR
*
bbr
);
#endif //PRRT_BBR_H
prrt/proto/channelStateInformation.c
View file @
02539561
...
...
@@ -17,12 +17,6 @@ PrrtChannelStateInformation * PrrtChannelStateInformation_create()
csi
->
rtprop_filter_length_us
=
2
*
1000
*
1000
;
// 2 seconds
csi
->
deliveryRate
=
0
;
csi
->
btlbw
=
0
;
csi
->
btlbw_next_round_delivered
=
0
;
csi
->
btlbw_round_start
=
false
;
csi
->
btlbw_round_count
=
0
;
csi
->
btlbw_filter_length
=
10
;
csi
->
appLimited
=
0
;
csi
->
plr
=
0
.
0
;
return
csi
;
...
...
@@ -89,10 +83,6 @@ prrtDeliveryRate_t PrrtChannelStateInformation_get_delivery_rate(PrrtChannelStat
return
csi
->
deliveryRate
;
}
prrtDeliveryRate_t
PrrtChannelStateInformation_get_btlbw
(
PrrtChannelStateInformation
*
csi
)
{
return
csi
->
btlbw
;
}
bool
PrrtChannelStateInformation_get_app_limited
(
PrrtChannelStateInformation
*
csi
)
{
return
csi
->
appLimited
;
}
\ No newline at end of file
prrt/proto/channelStateInformation.h
View file @
02539561
...
...
@@ -17,12 +17,6 @@ typedef struct prrtChannelStateInformation {
prrtDeliveryRate_t
deliveryRate
;
prrtDeliveryRate_t
btlbw
;
prrtByteCount_t
btlbw_next_round_delivered
;
bool
btlbw_round_start
;
uint32_t
btlbw_round_count
;
uint8_t
btlbw_filter_length
;
bool
appLimited
;
}
PrrtChannelStateInformation
;
...
...
@@ -30,7 +24,6 @@ PrrtChannelStateInformation* PrrtChannelStateInformation_create(void);
void
PrrtChannelStateInformation_update_rtprop
(
PrrtChannelStateInformation
*
csi
,
prrtTimedelta_t
rtprop
);
prrtTimedelta_t
PrrtChannelStateInformation_get_rtprop
(
PrrtChannelStateInformation
*
csi
);
prrtDeliveryRate_t
PrrtChannelStateInformation_get_delivery_rate
(
PrrtChannelStateInformation
*
csi
);
prrtDeliveryRate_t
PrrtChannelStateInformation_get_btlbw
(
PrrtChannelStateInformation
*
csi
);
bool
PrrtChannelStateInformation_get_app_limited
(
PrrtChannelStateInformation
*
csi
);
prrtPacketLossRate_t
PrrtChannelStateInformation_get_plr
(
PrrtChannelStateInformation
*
csi
);
...
...
prrt/proto/socket.c
View file @
02539561
...
...
@@ -54,6 +54,7 @@ PrrtSocket *PrrtSocket_create(const bool is_sender, prrtTimedelta_t target_delay
PrrtSocket
*
s
=
(
PrrtSocket
*
)
calloc
(
1
,
sizeof
(
PrrtSocket
));
check_mem
(
s
);
s
->
nextSendTime
=
0
;
s
->
isSender
=
is_sender
;
s
->
isHardwareTimestamping
=
false
;
...
...
@@ -597,7 +598,7 @@ prrtDeliveryRate_t PrrtSocket_get_delivery_rate(PrrtSocket *s) {
}
prrtDeliveryRate_t
PrrtSocket_get_btlbw
(
PrrtSocket
*
s
)
{
return
PrrtChannelStateInformation
_get
_b
tl
b
w
(
s
->
receiver
->
csi
);
return
BBR
_get
B
tl
B
w
(
s
->
receiver
->
bbr
);
}
bool
PrrtSocket_get_app_limited
(
PrrtSocket
*
s
)
{
...
...
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