Add option losslimit in the set command

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-10-23 13:52:40 +00:00
parent 8bd936929e
commit 5e0900c8ee
5 changed files with 31 additions and 2 deletions

View File

@@ -362,6 +362,10 @@ gt_bind(int argc, char **argv)
if (mud_set_time_tolerance(mud, req.ms))
res.ret = errno;
break;
case CTL_LOSSLIMIT:
if (mud_set_loss_limit(mud, req.percent))
res.ret = errno;
break;
case CTL_STATUS:
memcpy(res.status.tun_name, tun_name, sizeof(tun_name)); // XXX
res.status.pid = pid;