Symbol: test_ctx
crypto/openssl/apps/speed.c
3609
EVP_PKEY_CTX *test_ctx = NULL;
crypto/openssl/apps/speed.c
3637
if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */
crypto/openssl/apps/speed.c
3638
|| EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */
crypto/openssl/apps/speed.c
3639
|| EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */
crypto/openssl/apps/speed.c
3640
|| EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */
crypto/openssl/apps/speed.c
3642
|| EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */
crypto/openssl/apps/speed.c
3666
EVP_PKEY_CTX_free(test_ctx);
crypto/openssl/apps/speed.c
3667
test_ctx = NULL;
crypto/openssl/apps/speed.c
3947
EVP_PKEY_CTX *test_ctx = NULL;
crypto/openssl/apps/speed.c
4060
test_ctx = EVP_PKEY_CTX_new(pkey_B, NULL);
crypto/openssl/apps/speed.c
4061
if (!test_ctx) {
crypto/openssl/apps/speed.c
4068
if (EVP_PKEY_derive_init(test_ctx) <= 0 || EVP_PKEY_derive_set_peer(test_ctx, pkey_A) <= 0 || EVP_PKEY_derive(test_ctx, NULL, &test_out) <= 0 || EVP_PKEY_derive(test_ctx, loopargs[i].secret_ff_b, &test_out) <= 0 || test_out != secret_size) {
crypto/openssl/apps/speed.c
4091
EVP_PKEY_CTX_free(test_ctx);
crypto/openssl/apps/speed.c
4092
test_ctx = NULL;
crypto/openssl/test/helpers/handshake.c
1000
if (test_ctx->extra.server.force_pha)
crypto/openssl/test/helpers/handshake.c
1090
static int renegotiate_op(const SSL_TEST_CTX *test_ctx)
crypto/openssl/test/helpers/handshake.c
1092
switch (test_ctx->handshake_mode) {
crypto/openssl/test/helpers/handshake.c
1100
static int post_handshake_op(const SSL_TEST_CTX *test_ctx)
crypto/openssl/test/helpers/handshake.c
1102
switch (test_ctx->handshake_mode) {
crypto/openssl/test/helpers/handshake.c
1112
static connect_phase_t next_phase(const SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/handshake.c
1117
if (renegotiate_op(test_ctx) || post_handshake_op(test_ctx))
crypto/openssl/test/helpers/handshake.c
1123
if (post_handshake_op(test_ctx))
crypto/openssl/test/helpers/handshake.c
1139
static void do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer,
crypto/openssl/test/helpers/handshake.c
1150
do_reneg_setup_step(test_ctx, peer);
crypto/openssl/test/helpers/handshake.c
1415
const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra,
crypto/openssl/test/helpers/handshake.c
1452
test_ctx, extra, &server_ctx_data,
crypto/openssl/test/helpers/handshake.c
1460
if (test_ctx->enable_client_sctp_label_bug)
crypto/openssl/test/helpers/handshake.c
1462
if (test_ctx->enable_server_sctp_label_bug)
crypto/openssl/test/helpers/handshake.c
1476
server.bytes_to_write = client.bytes_to_read = test_ctx->app_data_size;
crypto/openssl/test/helpers/handshake.c
1477
client.bytes_to_write = server.bytes_to_read = test_ctx->app_data_size;
crypto/openssl/test/helpers/handshake.c
1493
if (test_ctx->use_sctp) {
crypto/openssl/test/helpers/handshake.c
1519
if (test_ctx->use_sctp) {
crypto/openssl/test/helpers/handshake.c
1554
do_connect_step(test_ctx, &client, phase);
crypto/openssl/test/helpers/handshake.c
1560
do_connect_step(test_ctx, &server, phase);
crypto/openssl/test/helpers/handshake.c
1568
phase = next_phase(test_ctx, phase);
crypto/openssl/test/helpers/handshake.c
1593
if (test_ctx->use_sctp) {
crypto/openssl/test/helpers/handshake.c
1743
const SSL_TEST_CTX *test_ctx)
crypto/openssl/test/helpers/handshake.c
1749
test_ctx, &test_ctx->extra,
crypto/openssl/test/helpers/handshake.c
1752
|| test_ctx->handshake_mode != SSL_TEST_HANDSHAKE_RESUME
crypto/openssl/test/helpers/handshake.c
1764
test_ctx, &test_ctx->resume_extra,
crypto/openssl/test/helpers/handshake.c
876
static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer)
crypto/openssl/test/helpers/handshake.c
893
|| !TEST_true(test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
895
|| test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
897
|| test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
899
|| test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
901
|| test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
908
peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size;
crypto/openssl/test/helpers/handshake.c
911
if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER
crypto/openssl/test/helpers/handshake.c
913
|| (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT
crypto/openssl/test/helpers/handshake.c
930
if (test_ctx->extra.client.no_extms_on_reneg) {
crypto/openssl/test/helpers/handshake.c
934
if (test_ctx->extra.client.reneg_ciphers != NULL) {
crypto/openssl/test/helpers/handshake.c
936
test_ctx->extra.client.reneg_ciphers)) {
crypto/openssl/test/helpers/handshake.c
968
} else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_KEY_UPDATE_SERVER
crypto/openssl/test/helpers/handshake.c
969
|| test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
972
!= (test_ctx->handshake_mode
crypto/openssl/test/helpers/handshake.c
978
ret = SSL_key_update(peer->ssl, test_ctx->key_update_type);
crypto/openssl/test/helpers/handshake.c
991
} else if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_POST_HANDSHAKE_AUTH) {
crypto/openssl/test/helpers/handshake.h
89
const SSL_TEST_CTX *test_ctx);
crypto/openssl/test/helpers/pkcs12.c
156
p12 = PKCS12_add_safes_ex(pb->safes, 0, test_ctx, test_propq);
crypto/openssl/test/helpers/pkcs12.c
167
md = EVP_MD_fetch(test_ctx, OBJ_nid2sn(mac->nid), test_propq);
crypto/openssl/test/helpers/pkcs12.c
208
p12 = PKCS12_init_ex(NID_pkcs7_data, test_ctx, test_propq);
crypto/openssl/test/helpers/pkcs12.c
288
enc->iter, enc->pass, test_ctx,
crypto/openssl/test/helpers/pkcs12.c
29
static OSSL_LIB_CTX *test_ctx = NULL;
crypto/openssl/test/helpers/pkcs12.c
425
test_ctx, test_propq);
crypto/openssl/test/helpers/pkcs12.c
610
p8 = PKCS12_decrypt_skey_ex(bag, enc->pass, strlen(enc->pass), test_ctx, test_propq);
crypto/openssl/test/helpers/pkcs12.c
63
test_ctx = libctx;
crypto/openssl/test/helpers/ssl_test_ctx.c
105
test_ctx->expected_result = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
131
__owur static int parse_client_alert(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
133
return parse_alert(&test_ctx->expected_client_alert, value);
crypto/openssl/test/helpers/ssl_test_ctx.c
136
__owur static int parse_server_alert(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
138
return parse_alert(&test_ctx->expected_server_alert, value);
crypto/openssl/test/helpers/ssl_test_ctx.c
158
__owur static int parse_protocol(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
161
&test_ctx->expected_protocol, value);
crypto/openssl/test/helpers/ssl_test_ctx.c
218
__owur static int parse_expected_servername(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
226
test_ctx->expected_servername = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
275
__owur static int parse_session_ticket(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
282
test_ctx->session_ticket_expected = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
305
__owur static int parse_session_id(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
312
test_ctx->session_id_expected = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
331
__owur static int parse_test_method(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
338
test_ctx->method = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
378
__owur static int parse_handshake_mode(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
385
test_ctx->handshake_mode = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
406
__owur static int parse_key_update_type(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/helpers/ssl_test_ctx.c
413
test_ctx->key_update_type = ret_value;
crypto/openssl/test/helpers/ssl_test_ctx.c
549
__owur static int parse_expected_tmp_key_type(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
552
return parse_expected_key_type(&test_ctx->expected_tmp_key_type, value);
crypto/openssl/test/helpers/ssl_test_ctx.c
555
__owur static int parse_expected_server_cert_type(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
558
return parse_expected_key_type(&test_ctx->expected_server_cert_type,
crypto/openssl/test/helpers/ssl_test_ctx.c
562
__owur static int parse_expected_server_sign_type(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
565
return parse_expected_key_type(&test_ctx->expected_server_sign_type,
crypto/openssl/test/helpers/ssl_test_ctx.c
569
__owur static int parse_expected_client_cert_type(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
572
return parse_expected_key_type(&test_ctx->expected_client_cert_type,
crypto/openssl/test/helpers/ssl_test_ctx.c
576
__owur static int parse_expected_client_sign_type(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
579
return parse_expected_key_type(&test_ctx->expected_client_sign_type,
crypto/openssl/test/helpers/ssl_test_ctx.c
600
__owur static int parse_expected_server_sign_hash(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
603
return parse_expected_sign_hash(&test_ctx->expected_server_sign_hash,
crypto/openssl/test/helpers/ssl_test_ctx.c
607
__owur static int parse_expected_client_sign_hash(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
610
return parse_expected_sign_hash(&test_ctx->expected_client_sign_hash,
crypto/openssl/test/helpers/ssl_test_ctx.c
626
__owur static int parse_expected_server_ca_names(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
629
return parse_expected_ca_names(&test_ctx->expected_server_ca_names, value,
crypto/openssl/test/helpers/ssl_test_ctx.c
630
test_ctx->libctx);
crypto/openssl/test/helpers/ssl_test_ctx.c
632
__owur static int parse_expected_client_ca_names(SSL_TEST_CTX *test_ctx,
crypto/openssl/test/helpers/ssl_test_ctx.c
635
return parse_expected_ca_names(&test_ctx->expected_client_ca_names, value,
crypto/openssl/test/helpers/ssl_test_ctx.c
636
test_ctx->libctx);
crypto/openssl/test/helpers/ssl_test_ctx.c
657
int (*parse)(SSL_TEST_CTX *test_ctx, const char *value);
crypto/openssl/test/helpers/ssl_test_ctx.c
98
__owur static int parse_expected_result(SSL_TEST_CTX *test_ctx, const char *value)
crypto/openssl/test/ssl_test.c
103
static int check_protocol(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
112
if (test_ctx->expected_protocol) {
crypto/openssl/test/ssl_test.c
114
test_ctx->expected_protocol)) {
crypto/openssl/test/ssl_test.c
116
ssl_protocol_name(test_ctx->expected_protocol),
crypto/openssl/test/ssl_test.c
124
static int check_servername(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
126
if (!TEST_int_eq(result->servername, test_ctx->expected_servername)) {
crypto/openssl/test/ssl_test.c
128
ssl_servername_name(test_ctx->expected_servername),
crypto/openssl/test/ssl_test.c
135
static int check_session_ticket(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
137
if (test_ctx->session_ticket_expected == SSL_TEST_SESSION_TICKET_IGNORE)
crypto/openssl/test/ssl_test.c
140
test_ctx->session_ticket_expected)) {
crypto/openssl/test/ssl_test.c
142
ssl_session_ticket_name(test_ctx->session_ticket_expected),
crypto/openssl/test/ssl_test.c
149
static int check_session_id(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
151
if (test_ctx->session_id_expected == SSL_TEST_SESSION_ID_IGNORE)
crypto/openssl/test/ssl_test.c
153
if (!TEST_int_eq(result->session_id, test_ctx->session_id_expected)) {
crypto/openssl/test/ssl_test.c
155
ssl_session_id_name(test_ctx->session_id_expected),
crypto/openssl/test/ssl_test.c
162
static int check_compression(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
164
if (!TEST_int_eq(result->compression, test_ctx->compression_expected))
crypto/openssl/test/ssl_test.c
169
static int check_npn(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
175
if (!TEST_str_eq(test_ctx->expected_npn_protocol,
crypto/openssl/test/ssl_test.c
182
static int check_alpn(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
188
if (!TEST_str_eq(test_ctx->expected_alpn_protocol,
crypto/openssl/test/ssl_test.c
195
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
203
if (test_ctx->expected_session_ticket_app_data != NULL)
crypto/openssl/test/ssl_test.c
204
expected_len = strlen(test_ctx->expected_session_ticket_app_data);
crypto/openssl/test/ssl_test.c
209
test_ctx->expected_session_ticket_app_data))
crypto/openssl/test/ssl_test.c
215
static int check_resumption(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
219
if (!TEST_int_eq(result->client_resumed, test_ctx->resumption_expected))
crypto/openssl/test/ssl_test.c
281
static int check_tmp_key(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
283
return check_nid("Tmp key", test_ctx->expected_tmp_key_type,
crypto/openssl/test/ssl_test.c
288
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
290
return check_nid("Server certificate", test_ctx->expected_server_cert_type,
crypto/openssl/test/ssl_test.c
295
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
297
return check_nid("Server signing hash", test_ctx->expected_server_sign_hash,
crypto/openssl/test/ssl_test.c
302
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
304
return check_nid("Server signing", test_ctx->expected_server_sign_type,
crypto/openssl/test/ssl_test.c
309
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
312
test_ctx->expected_server_ca_names,
crypto/openssl/test/ssl_test.c
317
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
319
return check_nid("Client certificate", test_ctx->expected_client_cert_type,
crypto/openssl/test/ssl_test.c
324
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
326
return check_nid("Client signing hash", test_ctx->expected_client_sign_hash,
crypto/openssl/test/ssl_test.c
331
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
333
return check_nid("Client signing", test_ctx->expected_client_sign_type,
crypto/openssl/test/ssl_test.c
338
SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
34
static int check_result(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
341
test_ctx->expected_client_ca_names,
crypto/openssl/test/ssl_test.c
345
static int check_cipher(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
347
if (test_ctx->expected_cipher == NULL)
crypto/openssl/test/ssl_test.c
351
if (!TEST_str_eq(test_ctx->expected_cipher,
crypto/openssl/test/ssl_test.c
36
if (!TEST_int_eq(result->result, test_ctx->expected_result)) {
crypto/openssl/test/ssl_test.c
362
static int check_test(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
365
ret &= check_result(result, test_ctx);
crypto/openssl/test/ssl_test.c
366
ret &= check_alerts(result, test_ctx);
crypto/openssl/test/ssl_test.c
368
ret &= check_protocol(result, test_ctx);
crypto/openssl/test/ssl_test.c
369
ret &= check_servername(result, test_ctx);
crypto/openssl/test/ssl_test.c
370
ret &= check_session_ticket(result, test_ctx);
crypto/openssl/test/ssl_test.c
371
ret &= check_compression(result, test_ctx);
crypto/openssl/test/ssl_test.c
372
ret &= check_session_id(result, test_ctx);
crypto/openssl/test/ssl_test.c
375
ret &= check_npn(result, test_ctx);
crypto/openssl/test/ssl_test.c
377
ret &= check_cipher(result, test_ctx);
crypto/openssl/test/ssl_test.c
378
ret &= check_alpn(result, test_ctx);
crypto/openssl/test/ssl_test.c
379
ret &= check_session_ticket_app_data(result, test_ctx);
crypto/openssl/test/ssl_test.c
38
ssl_test_result_name(test_ctx->expected_result),
crypto/openssl/test/ssl_test.c
380
ret &= check_resumption(result, test_ctx);
crypto/openssl/test/ssl_test.c
381
ret &= check_tmp_key(result, test_ctx);
crypto/openssl/test/ssl_test.c
382
ret &= check_server_cert_type(result, test_ctx);
crypto/openssl/test/ssl_test.c
383
ret &= check_server_sign_hash(result, test_ctx);
crypto/openssl/test/ssl_test.c
384
ret &= check_server_sign_type(result, test_ctx);
crypto/openssl/test/ssl_test.c
385
ret &= check_server_ca_names(result, test_ctx);
crypto/openssl/test/ssl_test.c
386
ret &= check_client_cert_type(result, test_ctx);
crypto/openssl/test/ssl_test.c
387
ret &= check_client_sign_hash(result, test_ctx);
crypto/openssl/test/ssl_test.c
388
ret &= check_client_sign_type(result, test_ctx);
crypto/openssl/test/ssl_test.c
389
ret &= check_client_ca_names(result, test_ctx);
crypto/openssl/test/ssl_test.c
399
SSL_TEST_CTX *test_ctx = NULL;
crypto/openssl/test/ssl_test.c
405
test_ctx = SSL_TEST_CTX_create(conf, test_app, libctx);
crypto/openssl/test/ssl_test.c
406
if (!TEST_ptr(test_ctx))
crypto/openssl/test/ssl_test.c
410
if (test_ctx->fips_version != NULL
crypto/openssl/test/ssl_test.c
411
&& !fips_provider_version_match(libctx, test_ctx->fips_version)) {
crypto/openssl/test/ssl_test.c
417
if (test_ctx->method == SSL_TEST_METHOD_DTLS) {
crypto/openssl/test/ssl_test.c
423
if (test_ctx->extra.server.servername_callback != SSL_TEST_SERVERNAME_CB_NONE) {
crypto/openssl/test/ssl_test.c
432
if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RESUME) {
crypto/openssl/test/ssl_test.c
449
if (test_ctx->method == SSL_TEST_METHOD_TLS) {
crypto/openssl/test/ssl_test.c
45
static int check_alerts(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx)
crypto/openssl/test/ssl_test.c
465
if (test_ctx->extra.server.servername_callback != SSL_TEST_SERVERNAME_CB_NONE) {
crypto/openssl/test/ssl_test.c
478
if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RESUME) {
crypto/openssl/test/ssl_test.c
526
resume_server_ctx, resume_client_ctx, test_ctx);
crypto/openssl/test/ssl_test.c
529
ret = check_test(result, test_ctx);
crypto/openssl/test/ssl_test.c
538
SSL_TEST_CTX_free(test_ctx);
crypto/openssl/test/ssl_test.c
75
if (test_ctx->expected_client_alert
crypto/openssl/test/ssl_test.c
81
&& (result->client_alert_sent & 0xff) != test_ctx->expected_client_alert) {
crypto/openssl/test/ssl_test.c
83
print_alert(test_ctx->expected_client_alert),
crypto/openssl/test/ssl_test.c
88
if (test_ctx->expected_server_alert
crypto/openssl/test/ssl_test.c
89
&& (result->server_alert_sent & 0xff) != test_ctx->expected_server_alert) {
crypto/openssl/test/ssl_test.c
91
print_alert(test_ctx->expected_server_alert),
tests/sys/file/flock_helper.c
1422
struct test_ctx *tc = tc_in;
tests/sys/file/flock_helper.c
1446
struct test_ctx tc = { .tc_fd = fd };
tests/sys/kern/listener_wakeup.c
215
struct test_ctx *ctx = data;
tests/sys/kern/listener_wakeup.c
231
struct test_ctx ctx = {
tools/regression/sockets/udp_pingpong/udp_pingpong.c
121
get_clock_type(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
138
get_scm_type(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
159
get_scm_size(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
178
setup_ts_sockopt(struct test_ctx *tcp, int fd)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
225
setup_udp(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
270
setup_udp6(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
308
teardown_udp(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
316
send_pkt(struct test_ctx *tcp, int pnum, int fdidx, const char *face)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
337
hdr_extract_ts(struct test_ctx *tcp, struct msghdr *mhp, struct timespec *tp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
383
recv_pkt_recvmsg(struct test_ctx *tcp, int fdidx, const char *face, void *buf,
tools/regression/sockets/udp_pingpong/udp_pingpong.c
416
recv_pkt_recv(struct test_ctx *tcp, int fdidx, const char *face, void *buf,
tools/regression/sockets/udp_pingpong/udp_pingpong.c
433
recv_pkt(struct test_ctx *tcp, int fdidx, const char *face, int tout)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
471
test_server(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
487
test_client(struct test_ctx *tcp)
tools/regression/sockets/udp_pingpong/udp_pingpong.c
520
struct test_ctx test_ctx;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
526
bzero(&test_ctx, sizeof(test_ctx));
tools/regression/sockets/udp_pingpong/udp_pingpong.c
527
test_ctx.name = name;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
528
test_ctx.use_recvmsg = use_recvmsg;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
529
test_ctx.ts_type = ts_type;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
531
setup_udp(&test_ctx);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
533
setup_udp6(&test_ctx);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
536
test_ctx.test_pkts[i].pnum = i;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
537
test_ctx.test_pkts[i].lost = 1;
tools/regression/sockets/udp_pingpong/udp_pingpong.c
539
test_ctx.test_pkts[i].data[j] = (unsigned char)random();
tools/regression/sockets/udp_pingpong/udp_pingpong.c
544
err(1, "%s: fork()", test_ctx.name);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
547
test_client(&test_ctx);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
550
test_server(&test_ctx);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
553
err(1, "%s: waitpid(%d)", test_ctx.name, cpid);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
569
if (test_ctx.nrecvd < MIN_NRECV) {
tools/regression/sockets/udp_pingpong/udp_pingpong.c
571
test_ctx.nrecvd, test_ctx.nsent, MIN_NRECV);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
575
if (test_ctx.test_pkts[i].lost != 0) {
tools/regression/sockets/udp_pingpong/udp_pingpong.c
578
calc_rtt(&test_ctx.test_pkts[i], &rtt);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
588
teardown_udp(&test_ctx);