/* Set timeout value for state specified by name  */
int ip_vs_set_state_timeout(int *table, int num, const char *const *names, const char *name, int to)
/* Set timeout value for state specified by name  */
int ip_vs_set_state_timeout(int *table, int num, const char *const *names, const char *name, int to)
{
	int i;
	if (!table || !name || !to)
		return -EINVAL;
	for (i = 0; i < num; i++) {
		if (strcmp(names[i], name))
			continue;
		table[i] = to * HZ;
		return 0;
	}
	return -ENOENT;
}