21 p[ n>>5 ] |= (1 << (n&31));
26 return p[ n>>5 ] & (1 << (n&31));
32 int start_index = (start >> 5);
33 int mask_index = (mask >> 5);
35 start_index &= mask_index;
38 int start_bit = (start & 0x1f);
40 n = (1 << start_bit)-1;
41 t = start_bit + num_bits;
45 p[ start_index ] &= n;
48 p[ start_index ] &= n;
49 start_index = (start_index + 1) & mask_index;
50 num_bits -= (32 - start_bit);
52 while (num_bits >= 32)
55 start_index = (start_index + 1) & mask_index;
58 n = ~((1 << num_bits) - 1);
59 p[ start_index ] &= n;
79 static int peer_dead_count;
88 if (diff < bitmap->window_size)
107 diff = bitmap->
highest - seqno;
120 if (peer_dead_count > 25)
static void BIT_SET(u64 *p, u32 n)
static u8 seqno_check_wraparound(u32 a, u32 b)
void ioam_analyze_seqno(seqno_rx_info *seqno_rx, u64 seqno)
static void BIT_CLEAR(u64 *p, u64 start, int num_bits, u32 mask)
static int BIT_TEST(u64 *p, u32 n)
u64 array[SEQNO_WINDOW_ARRAY_SIZE]