Lines Matching refs:flip_offset
228 int *should_drop, uint16_t *flip, size_t *flip_offset) in get_noise() argument
275 *flip_offset = test_random() % (25 * (1 + long_header)); in get_noise()
280 size_t flip_offset) in flip_bits() argument
288 if (msg_len < flip_offset + 2) in flip_bits()
289 flip_offset = msg_len - 2; in flip_bits()
293 (unsigned int)flip_offset); in flip_bits()
298 msg[flip_offset] ^= flip >> 8; in flip_bits()
299 msg[flip_offset + 1] ^= flip & 0xff; in flip_bits()
367 size_t flip_offset; in noisy_dgram_recvmmsg() local
394 &reinject, &should_drop, &flip, &flip_offset); in noisy_dgram_recvmmsg()
411 flip_bits(thismsg->data, thismsg->data_len, flip, flip_offset); in noisy_dgram_recvmmsg()