Home
last modified time | relevance | path

Searched refs:their_counter (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/net/wireguard/
Dreceive.c302 static bool counter_validate(struct noise_replay_counter *counter, u64 their_counter) in counter_validate() argument
310 their_counter >= REJECT_AFTER_MESSAGES)) in counter_validate()
313 ++their_counter; in counter_validate()
315 if (unlikely((COUNTER_WINDOW_SIZE + their_counter) < in counter_validate()
319 index = their_counter >> ilog2(BITS_PER_LONG); in counter_validate()
321 if (likely(their_counter > counter->counter)) { in counter_validate()
328 counter->counter = their_counter; in counter_validate()
332 ret = !test_and_set_bit(their_counter & (BITS_PER_LONG - 1), in counter_validate()