| 1188 | */ |
| 1189 | |
| 1190 | static inline int |
| 1191 | check_window(const struct secreplay *replay, uint64_t seq) |
| 1192 | { |
| 1193 | int index, bit_location; |
| 1194 | |
| 1195 | bit_location = seq & IPSEC_BITMAP_LOC_MASK; |
| 1196 | index = (seq >> IPSEC_REDUNDANT_BIT_SHIFTS) |
| 1197 | & IPSEC_BITMAP_INDEX_MASK(replay->bitmap_size); |
| 1198 | |
| 1199 | /* This packet already seen? */ |
| 1200 | return ((replay->bitmap)[index] & (1 << bit_location)); |
| 1201 | } |
| 1202 | |
| 1203 | static inline void |
| 1204 | advance_window(const struct secreplay *replay, uint64_t seq) |
no outgoing calls
no test coverage detected