Update mud

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-02-24 16:03:44 +00:00
parent 7eecb435b9
commit e21c83602f
4 changed files with 20 additions and 27 deletions

View File

@@ -284,12 +284,8 @@ gt_bind(int argc, char **argv)
switch (req.type) {
case CTL_NONE:
break;
case CTL_PATH_ADD:
if (mud_add_path(mud, (struct sockaddr *)&req.path_addr))
res.ret = errno;
break;
case CTL_PATH_DEL:
if (mud_del_path(mud, (struct sockaddr *)&req.path_addr))
case CTL_STATE:
if (mud_set_state(mud, (struct sockaddr *)&req.path.addr, req.path.state))
res.ret = errno;
break;
case CTL_MTU: