/hostap-latest/src/crypto/ |
D | crypto_module_tests.c | 218 static int test_omac1_vector(const struct omac1_test_vector *tv, in test_omac1_vector() argument 230 if (omac1_aes_128(tv->k, tv->msg, tv->msg_len, result) || in test_omac1_vector() 231 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector() 236 if (tv->msg_len > 1) { in test_omac1_vector() 238 addr[0] = tv->msg; in test_omac1_vector() 240 addr[1] = tv->msg + 1; in test_omac1_vector() 241 len[1] = tv->msg_len - 1; in test_omac1_vector() 243 if (omac1_aes_128_vector(tv->k, 2, addr, len, result) || in test_omac1_vector() 244 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector() 251 addr[0] = tv->msg; in test_omac1_vector() [all …]
|
/hostap-latest/src/utils/ |
D | os_internal.c | 44 struct timeval tv; in os_get_time() local 45 res = gettimeofday(&tv, NULL); in os_get_time() 46 t->sec = tv.tv_sec; in os_get_time() 47 t->usec = tv.tv_usec; in os_get_time() 55 struct timeval tv; in os_get_reltime() local 56 res = gettimeofday(&tv, NULL); in os_get_reltime() 57 t->sec = tv.tv_sec; in os_get_reltime() 58 t->usec = tv.tv_usec; in os_get_reltime()
|
D | os_zephyr.c | 29 struct timeval tv; in os_get_time() local 31 res = gettimeofday(&tv, NULL); in os_get_time() 32 t->sec = (os_time_t)tv.tv_sec; in os_get_time() 33 t->usec = (os_time_t)tv.tv_usec; in os_get_time()
|
D | eloop_win.c | 535 struct os_reltime tv, now; in eloop_run() local 543 tv.sec = tv.usec = 0; in eloop_run() 549 os_reltime_sub(&timeout->time, &now, &tv); in eloop_run() 563 timeout_val = tv.sec * 1000 + tv.usec / 1000; in eloop_run()
|
D | wpa_debug.c | 72 struct os_time tv; in wpa_debug_print_timestamp() local 77 os_get_time(&tv); in wpa_debug_print_timestamp() 80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, in wpa_debug_print_timestamp() 81 (unsigned int) tv.usec); in wpa_debug_print_timestamp() 84 printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec); in wpa_debug_print_timestamp()
|
D | eloop.c | 1088 struct os_reltime tv, now; in eloop_run() local 1121 os_reltime_sub(&timeout->time, &now, &tv); in eloop_run() 1123 tv.sec = tv.usec = 0; in eloop_run() 1125 timeout_ms = tv.sec * 1000 + tv.usec / 1000; in eloop_run() 1128 _tv.tv_sec = tv.sec; in eloop_run() 1129 _tv.tv_usec = tv.usec; in eloop_run() 1132 ts.tv_sec = tv.sec; in eloop_run() 1133 ts.tv_nsec = tv.usec * 1000L; in eloop_run()
|
D | os_unix.c | 68 struct timeval tv; in os_get_time() local 69 res = gettimeofday(&tv, NULL); in os_get_time() 70 t->sec = tv.tv_sec; in os_get_time() 71 t->usec = tv.tv_usec; in os_get_time()
|
/hostap-latest/tests/ |
D | test-https.c | 28 struct timeval tv; in https_recv() local 36 tv.tv_sec = 5; in https_recv() 37 tv.tv_usec = 0; in https_recv() 40 ret = select(s + 1, &rfds, NULL, NULL, &tv); in https_recv()
|
D | test-https_server.c | 27 struct timeval tv; in https_recv() local 35 tv.tv_sec = timeout_ms / 1000; in https_recv() 36 tv.tv_usec = timeout_ms % 1000; in https_recv() 39 ret = select(s + 1, &rfds, NULL, NULL, &tv); in https_recv()
|
/hostap-latest/src/common/ |
D | wpa_ctrl.c | 493 struct timeval tv; in wpa_ctrl_request() local 560 tv.tv_sec = diff.sec; in wpa_ctrl_request() 561 tv.tv_usec = diff.usec; in wpa_ctrl_request() 565 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_request() 673 struct timeval tv; in wpa_ctrl_pending() local 675 tv.tv_sec = 0; in wpa_ctrl_pending() 676 tv.tv_usec = 0; in wpa_ctrl_pending() 679 select(ctrl->s + 1, &rfds, NULL, NULL, &tv); in wpa_ctrl_pending()
|
D | wpa_helpers.c | 106 struct timeval tv; in get_wpa_cli_event2() local 120 tv.tv_sec = default_timeout; in get_wpa_cli_event2() 121 tv.tv_usec = 0; in get_wpa_cli_event2() 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv); in get_wpa_cli_event2()
|
/hostap-latest/src/l2_packet/ |
D | l2_packet_privsep.c | 141 struct timeval tv; in l2_packet_init() local 193 tv.tv_sec = 5; in l2_packet_init() 194 tv.tv_usec = 0; in l2_packet_init() 195 res = select(l2->fd + 1, &rfds, NULL, NULL, &tv); in l2_packet_init()
|
/hostap-latest/src/drivers/ |
D | driver_privsep.c | 69 struct timeval tv; in wpa_priv_cmd() local 74 tv.tv_sec = 5; in wpa_priv_cmd() 75 tv.tv_usec = 0; in wpa_priv_cmd() 76 res = select(drv->cmd_socket + 1, &rfds, NULL, NULL, &tv); in wpa_priv_cmd()
|