Lines Matching full:settings
87 /** This is the Iperf settings struct sent from the client */
126 lwiperf_settings_t settings; member
289 if (conn->settings.amount & PP_HTONL(0x80000000)) { in lwiperf_tcp_client_send_more()
293 u32_t time = (u32_t) - (s32_t)lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more()
302 u32_t amount_bytes = lwip_htonl(conn->settings.amount); in lwiperf_tcp_client_send_more()
312 /* transmit the settings a first time */ in lwiperf_tcp_client_send_more()
313 txptr = &((u8_t *)&conn->settings)[conn->bytes_transferred]; in lwiperf_tcp_client_send_more()
317 /* transmit the settings a second time */ in lwiperf_tcp_client_send_more()
318 txptr = &((u8_t *)&conn->settings)[conn->bytes_transferred - 24]; in lwiperf_tcp_client_send_more()
324 /* @todo: every x bytes, transmit the settings again */ in lwiperf_tcp_client_send_more()
327 if (conn->bytes_transferred == 48) { /* @todo: fix this for intermediate settings, too */ in lwiperf_tcp_client_send_more()
387 lwiperf_tx_start_impl(const ip_addr_t *remote_ip, u16_t remote_port, lwiperf_settings_t *settings, … in lwiperf_tx_start_impl() argument
396 LWIP_ASSERT("remote_ip != NULL", settings != NULL); in lwiperf_tx_start_impl()
418 memcpy(&client_conn->settings, settings, sizeof(*settings)); in lwiperf_tx_start_impl()
443 u16_t remote_port = (u16_t)lwip_htonl(conn->settings.remote_port); in lwiperf_tx_start_passive()
445 …ret = lwiperf_tx_start_impl(&conn->conn_pcb->remote_ip, remote_port, &conn->settings, conn->report… in lwiperf_tx_start_passive()
449 new_conn->settings.flags = 0; /* prevent the remote side starting back as client again */ in lwiperf_tx_start_passive()
473 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv()
474 if ((conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_NOW)) == 0) { in lwiperf_tcp_recv()
494 …if (pbuf_copy_partial(p, &conn->settings, sizeof(lwiperf_settings_t), 0) != sizeof(lwiperf_setting… in lwiperf_tcp_recv()
500 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv()
501 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_NOW)) { in lwiperf_tcp_recv()
512 if (conn->settings.flags & PP_HTONL(LWIPERF_FLAGS_ANSWER_TEST)) { in lwiperf_tcp_recv()
513 if (pbuf_memcmp(p, 0, &conn->settings, sizeof(lwiperf_settings_t)) != 0) { in lwiperf_tcp_recv()
762 lwiperf_settings_t settings; in lwiperf_start_tcp_client() local
765 memset(&settings, 0, sizeof(settings)); in lwiperf_start_tcp_client()
769 settings.flags = 0; in lwiperf_start_tcp_client()
773 settings.flags = htonl(LWIPERF_FLAGS_ANSWER_TEST | LWIPERF_FLAGS_ANSWER_NOW); in lwiperf_start_tcp_client()
777 settings.flags = htonl(LWIPERF_FLAGS_ANSWER_TEST); in lwiperf_start_tcp_client()
783 settings.num_threads = htonl(1); in lwiperf_start_tcp_client()
784 settings.remote_port = htonl(LWIPERF_TCP_PORT_DEFAULT); in lwiperf_start_tcp_client()
786 settings.amount = htonl((u32_t)-1000); in lwiperf_start_tcp_client()
788 …ret = lwiperf_tx_start_impl(remote_addr, remote_port, &settings, report_fn, report_arg, NULL, &sta… in lwiperf_start_tcp_client()