void default_ntttcp_test()

in src/ntttcp.c [21:59]


void default_ntttcp_test(struct ntttcp_test *test)
{
	test->server_role		= false;
	test->client_role		= false;
	test->daemon			= false;
	test->multi_clients_mode	= false;
	test->last_client		= false;
	test->use_epoll			= false;
	test->exit_after_done		= true;
	test->mapping			= "16,*,*";
	test->bind_address		= "0.0.0.0";
	test->cpu_affinity		= -1; /* no hard cpu affinity */
	test->server_ports		= DEFAULT_NUM_SERVER_PORTS;	 //default:16 */
	test->threads_per_server_port	= DEFAULT_THREADS_PER_SERVER_PORT; /* default: 4, sender only */
	test->conns_per_thread		= DEFAULT_CLIENT_CONNS_PER_THREAD; /* default: 1, sender only */
	test->domain			= AF_INET; /* IPV4 */
	test->protocol			= TCP;
	test->server_base_port		= DEFAULT_BASE_DST_PORT;
	test->client_base_port		= 0; /* random/ephemeral port */
	test->recv_buf_size		= DEFAULT_RECV_BUFFER_SIZE; /* 64K */
	test->send_buf_size		= DEFAULT_SEND_BUFFER_SIZE; /* 128K */
	test->bandwidth_limit		= 0; /* no bandwidth limit */
	test->fq_rate_limit		= 0; /* o fq rate limit */
	test->warmup			= DEFAULT_WARMUP_SEC; /* 0 sec */
	test->duration			= DEFAULT_TEST_DURATION; /* 60 sec */
	test->cooldown			= DEFAULT_COOLDOWN_SEC; /* 0 sec */
	test->no_synch			= false;
	test->show_tcp_retransmit	= false;
	test->show_interface_packets	= "";
	test->show_dev_interrupts	= "";
	test->save_console_log		= false;
	test->console_log_filename	= DEFAULT_CONSOLE_LOG_FILE_NAME; /* "ntttcp-for-linux-log.log" */
	test->save_xml_log		= false;
	test->xml_log_filename		= DEFAULT_XML_LOG_FILE_NAME; /* "ntttcp-for-linux-log.xml" */
	test->save_json_log		= false;
	test->json_log_filename		= DEFAULT_JSON_LOG_FILE_NAME; /* "ntttcp-for-linux-log.json" */
	test->quiet			= false;
	test->verbose			= false;
}