diff --git a/mud b/mud index 2f5e346..e3eb1f9 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 2f5e346532828bc591a066d180e1305753e77f0f +Subproject commit e3eb1f96a50451f3feabeaa622be455f7f464e24 diff --git a/src/bind.c b/src/bind.c index 5c3b393..aeb7590 100644 --- a/src/bind.c +++ b/src/bind.c @@ -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: diff --git a/src/ctl.h b/src/ctl.h index 8e6eb83..307dddc 100644 --- a/src/ctl.h +++ b/src/ctl.h @@ -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; diff --git a/src/path.c b/src/path.c index 850a5d5..86cff36 100644 --- a/src/path.c +++ b/src/path.c @@ -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))