Add beat option in path command
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
2
mud
2
mud
Submodule mud updated: 2f5e346532...e3eb1f96a5
@@ -301,8 +301,11 @@ 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, 0, req.path.fixed_rate))
|
||||
req.path.state,
|
||||
req.path.rate_tx,
|
||||
req.path.rate_rx,
|
||||
req.path.beat,
|
||||
req.path.fixed_rate))
|
||||
res.ret = errno;
|
||||
break;
|
||||
case CTL_PATH_STATUS:
|
||||
|
||||
@@ -29,6 +29,7 @@ struct ctl_msg {
|
||||
enum mud_state state;
|
||||
unsigned long rate_tx;
|
||||
unsigned long rate_rx;
|
||||
unsigned long beat;
|
||||
unsigned char fixed_rate;
|
||||
} path;
|
||||
struct mud_path path_status;
|
||||
|
||||
@@ -161,6 +161,7 @@ gt_path(int argc, char **argv)
|
||||
{"dev", "NAME", &dev, argz_str},
|
||||
{"up|backup|down", NULL, NULL, argz_option},
|
||||
{"rate", NULL, &ratez, argz_option},
|
||||
{"beat", "SECONDS", &req.path.beat, argz_time},
|
||||
{NULL}};
|
||||
|
||||
if (argz(pathz, argc, argv))
|
||||
|
||||
Reference in New Issue
Block a user