Update mud

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2020-01-03 15:39:10 +00:00
parent 020b115171
commit 0ccb3de68d
3 changed files with 5 additions and 5 deletions

2
mud

Submodule mud updated: 0537b01d4b...b6238c939e

View File

@@ -272,7 +272,7 @@ gt_bind(int argc, char **argv)
int r = tun_read(tun_fd, buf, sizeof(buf));
if (r > 0 && !ip_get_common(&ic, buf, r)) {
mud_send(mud, buf, (size_t)r, ic.tc);
mud_send(mud, buf, (size_t)r);
mud_can_write = 0;
}
@@ -306,7 +306,7 @@ gt_bind(int argc, char **argv)
break;
case CTL_STATE:
if (mud_set_state(mud, (struct sockaddr *)&req.path.addr,
req.path.state, req.path.rate_tx, req.path.rate_rx))
req.path.state, req.path.rate_tx, req.path.rate_rx, 0))
res.ret = errno;
break;
case CTL_PATH_STATUS:

View File

@@ -67,10 +67,10 @@ gt_path_print_status(struct mud_path *path, int term)
(double)path->rtt.val / 1e3,
(double)path->rtt.var / 1e3,
path->tx.rate,
path->tx.loss,
path->tx.loss * 100 / 255,
path->tx.total,
path->rx.rate,
path->rx.loss,
path->rx.loss * 100 / 255,
path->rx.total);
}