| 1222 | } |
| 1223 | |
| 1224 | static inline void |
| 1225 | set_window(const struct secreplay *replay, uint64_t seq) |
| 1226 | { |
| 1227 | int index, bit_location; |
| 1228 | |
| 1229 | bit_location = seq & IPSEC_BITMAP_LOC_MASK; |
| 1230 | index = (seq >> IPSEC_REDUNDANT_BIT_SHIFTS) |
| 1231 | & IPSEC_BITMAP_INDEX_MASK(replay->bitmap_size); |
| 1232 | |
| 1233 | replay->bitmap[index] |= (1 << bit_location); |
| 1234 | } |
| 1235 | |
| 1236 | /* |
| 1237 | * Check the variable replay window. |
no outgoing calls
no test coverage detected