diff --git a/mud b/mud index 0537b01..b6238c9 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 0537b01d4be605e365b735cbc6d4c445fbf4a213 +Subproject commit b6238c939e685733d2af48d332b2eba9e25e1678 diff --git a/src/bind.c b/src/bind.c index 1ab019e..2f54f89 100644 --- a/src/bind.c +++ b/src/bind.c @@ -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: diff --git a/src/path.c b/src/path.c index d294659..35e3df3 100644 --- a/src/path.c +++ b/src/path.c @@ -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); }