Remove option timeout
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
@@ -290,10 +290,6 @@ gt_bind(int argc, char **argv)
|
||||
if (mud_set_keyx_timeout(mud, req.ms))
|
||||
res.ret = errno;
|
||||
break;
|
||||
case CTL_TIMEOUT:
|
||||
if (mud_set_send_timeout(mud, req.ms))
|
||||
res.ret = errno;
|
||||
break;
|
||||
case CTL_TIMETOLERANCE:
|
||||
if (mud_set_time_tolerance(mud, req.ms))
|
||||
res.ret = errno;
|
||||
|
||||
@@ -11,7 +11,6 @@ enum ctl_type {
|
||||
CTL_MTU,
|
||||
CTL_TC,
|
||||
CTL_KXTIMEOUT,
|
||||
CTL_TIMEOUT,
|
||||
CTL_TIMETOLERANCE,
|
||||
CTL_PATH_STATUS,
|
||||
CTL_SYNC,
|
||||
|
||||
22
src/set.c
22
src/set.c
@@ -45,24 +45,6 @@ gt_set_kxtimeout(int fd, unsigned long ms)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
gt_set_timeout(int fd, unsigned long ms)
|
||||
{
|
||||
struct ctl_msg res, req = {
|
||||
.type = CTL_TIMEOUT,
|
||||
.ms = ms,
|
||||
};
|
||||
|
||||
int ret = ctl_reply(fd, &res, &req);
|
||||
|
||||
if (ret) {
|
||||
perror("set timeout");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
gt_set_timetolerance(int fd, unsigned long ms)
|
||||
{
|
||||
@@ -140,7 +122,6 @@ gt_set(int argc, char **argv)
|
||||
{"mtu", "BYTES", &mtu, argz_bytes},
|
||||
{"tc", "CS|AF|EF", &tc, gt_argz_tc},
|
||||
{"kxtimeout", "SECONDS", &kxtimeout, argz_time},
|
||||
{"timeout", "SECONDS", &timeout, argz_time},
|
||||
{"timetolerance", "SECONDS", &timetolerance, argz_time},
|
||||
{NULL}};
|
||||
|
||||
@@ -177,9 +158,6 @@ gt_set(int argc, char **argv)
|
||||
if (argz_is_set(pathz, "kxtimeout"))
|
||||
ret |= gt_set_kxtimeout(fd, kxtimeout);
|
||||
|
||||
if (argz_is_set(pathz, "timeout"))
|
||||
ret |= gt_set_timeout(fd, timeout);
|
||||
|
||||
if (argz_is_set(pathz, "timetolerance"))
|
||||
ret |= gt_set_timetolerance(fd, timetolerance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user