Lines Matching refs:msg

32     BIO_MSG msg;  member
113 BIO_MSG *msg, size_t num_msg) in bandwidth_limit() argument
138 size_t pktsize = msg[i].data_len; in bandwidth_limit()
169 static int noisy_dgram_sendmmsg(BIO *bio, BIO_MSG *msg, size_t stride, in noisy_dgram_sendmmsg() argument
188 num_msg = bandwidth_limit(&data->send_limit, now, msg, num_msg); in noisy_dgram_sendmmsg()
199 return BIO_sendmmsg(next, msg, stride, num_msg, flags, msgs_processed); in noisy_dgram_sendmmsg()
279 static void flip_bits(unsigned char *msg, size_t msg_len, uint16_t flip, in flip_bits() argument
294 BIO_dump_fp(stdout, msg, msg_len); in flip_bits()
298 msg[flip_offset] ^= flip >> 8; in flip_bits()
299 msg[flip_offset + 1] ^= flip & 0xff; in flip_bits()
302 static int noisy_dgram_recvmmsg(BIO *bio, BIO_MSG *msg, size_t stride, in noisy_dgram_recvmmsg() argument
328 data_len = msg[i].data_len; in noisy_dgram_recvmmsg()
331 } else if (!TEST_size_t_eq(msg[i].data_len, data_len)) { in noisy_dgram_recvmmsg()
336 if (!BIO_recvmmsg(next, msg, stride, num_msg, flags, msgs_processed)) in noisy_dgram_recvmmsg()
343 BIO_dump_fp(stdout, msg[i].data, msg[i].data_len); in noisy_dgram_recvmmsg()
353 msg_cnt = bandwidth_limit(&data->recv_limit, now, msg, msg_cnt); in noisy_dgram_recvmmsg()
361 for (i = 0, thismsg = msg; in noisy_dgram_recvmmsg()
375 if (!bio_msg_copy(&msg[j], &msg[j - 1])) in noisy_dgram_recvmmsg()
378 if (!bio_msg_copy(thismsg, &data->msg)) in noisy_dgram_recvmmsg()
424 if (!bio_msg_copy(&data->msg, thismsg)) in noisy_dgram_recvmmsg()
444 if (!bio_msg_copy(&msg[j - 1], &msg[j])) in noisy_dgram_recvmmsg()
455 BIO_dump_fp(stdout, msg[i].data, msg[i].data_len); in noisy_dgram_recvmmsg()
477 OPENSSL_free(data->msg.data); in data_free()
478 BIO_ADDR_free(data->msg.peer); in data_free()
479 BIO_ADDR_free(data->msg.local); in data_free()
491 data->msg.data = OPENSSL_malloc(MSG_DATA_LEN_MAX); in noisy_dgram_new()
492 data->msg.peer = BIO_ADDR_new(); in noisy_dgram_new()
493 data->msg.local = BIO_ADDR_new(); in noisy_dgram_new()
494 if (data->msg.data == NULL in noisy_dgram_new()
495 || data->msg.peer == NULL in noisy_dgram_new()
496 || data->msg.local == NULL) { in noisy_dgram_new()