Add option path rate tx/rx

These two options are mandatory since dynamic shapping
is disabled for now.

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-02-09 16:21:39 +00:00
parent 9131af6e85
commit a65cb2ad15
5 changed files with 21 additions and 15 deletions

View File

@@ -252,7 +252,8 @@ gt_bind(int argc, char **argv)
case CTL_NONE:
break;
case CTL_STATE:
if (mud_set_state(mud, (struct sockaddr *)&req.path.addr, req.path.state))
if (mud_set_state(mud, (struct sockaddr *)&req.path.addr,
req.path.state, req.path.rate_tx, req.path.rate_rx))
res.ret = errno;
break;
case CTL_PATH_STATUS: