Example #1
0
void
connect_port_handler(vector strvec)
{
	tcp_checker_t *tcp_chk = CHECKER_GET();

	checker_set_dst_port(&tcp_chk->dst, htons(CHECKER_VALUE_INT(strvec)));
}
Example #2
0
/* "connect_timeout" keyword */
static void
co_timeout_handler(vector_t *strvec)
{
	conn_opts_t *co = CHECKER_GET_CO();
	co->connection_to = CHECKER_VALUE_INT(strvec) * TIMER_HZ;

	/* do not allow 0 timeout */
	if (! co->connection_to)
		co->connection_to = TIMER_HZ;
}
Example #3
0
void
connect_timeout_handler(vector strvec)
{
	tcp_checker_t *tcp_chk = CHECKER_GET();
	tcp_chk->connection_to = CHECKER_VALUE_INT(strvec) * TIMER_HZ;
}
Example #4
0
/* "warmup" keyword */
void warmup_handler(vector_t *strvec)
{
	checker_t *checker = CHECKER_GET_CURRENT();
	checker->warmup = (long)CHECKER_VALUE_INT (strvec) * TIMER_HZ;
}
Example #5
0
/* "fwmark" keyword */
static void
co_fwmark_handler(vector_t *strvec)
{
	conn_opts_t *co = CHECKER_GET_CO();
	co->fwmark = CHECKER_VALUE_INT(strvec);
}
Example #6
0
/* "bind_port" keyword */
static void
co_srcport_handler(vector_t *strvec)
{
	conn_opts_t *co = CHECKER_GET_CO();
	checker_set_dst_port(&co->bindto, htons(CHECKER_VALUE_INT(strvec)));
}
Example #7
0
void
misc_timeout_handler(vector strvec)
{
	misc_checker *misc_chk = CHECKER_GET();
	misc_chk->timeout = CHECKER_VALUE_INT(strvec) * TIMER_HZ;
}