Add option 'set tc'

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-02-27 23:12:36 +00:00
parent 44f75458d1
commit ff5b966866
3 changed files with 87 additions and 20 deletions

View File

@@ -315,6 +315,10 @@ gt_bind(int argc, char **argv)
res.mtu = gt_setup_mtu(mud, tun_name);
mtu = res.mtu;
break;
case CTL_TC:
if (mud_set_tc(mud, req.tc))
res.ret = errno;
break;
case CTL_TIMEOUT:
if (mud_set_send_timeout(mud, req.timeout))
res.ret = errno;