1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

rtp: improve debugging output

This commit is contained in:
Steffen Vogel 2019-01-28 11:09:44 +01:00
parent b438a79d4c
commit 0ee8d73c87
2 changed files with 7 additions and 4 deletions

View file

@ -75,6 +75,8 @@ static int rtp_set_rate(struct node *n, double rate)
return -1;
}
debug(5, "Set rate limiting for node %s to %f", node_name(n), rate);
return 0;
}
@ -90,8 +92,6 @@ static int rtp_aimd(struct node *n, double loss_frac)
else
rate = r->aimd.last_rate * r->aimd.b;
debug(5, "Set rate limiting for node %s to %f", node_name(n), rate);
r->aimd.last_rate = rate;
ret = rtp_set_rate(n, rate);
@ -301,12 +301,12 @@ static void rtcp_handler(const struct sa *src, struct rtcp_msg *msg, void *arg)
/* source not used */
(void) src;
debug(5, "rtcp: recv %s\n", rtcp_type_name(msg->hdr.pt));
debug(5, "rtcp: recv %s", rtcp_type_name(msg->hdr.pt));
if (msg->hdr.pt == RTCP_SR) {
if(msg->hdr.count > 0) {
const struct rtcp_rr *rr = &msg->r.sr.rrv[0];
debug(5, "rtp: fraction lost = %d\n", rr->fraction);
debug(5, "rtp: fraction lost = %d", rr->fraction);
rtp_aimd(n, rr->fraction);
}
else

View file

@ -40,6 +40,9 @@ VECTORIZE="1"
cat > ${CONFIG_FILE} << EOF
{
"logging" : {
"level" : "debug"
},
"nodes" : {
"node1" : {
"type" : "rtp",