MCPcopy Create free account
hub / github.com/F-Stack/f-stack / set_window

Function set_window

freebsd/netipsec/ipsec.c:1224–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224static inline void
1225set_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.

Callers 1

ipsec_updatereplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected