but this gives a value of 4, so that only 4 of the 32 bits in the replay bitmap are used. In RFC2401, which this is based on, the window size is declared as:
enum {
ReplayWindowSize = 32
};
This discrepancy shouldn't cause failures, but could cause out-of-order packets to be dropped unnecessarily.
In wireguard_check_replay(), wireguard.c line 324, the replay window size is declared as:
but this gives a value of 4, so that only 4 of the 32 bits in the replay bitmap are used. In RFC2401, which this is based on, the window size is declared as:
enum { ReplayWindowSize = 32 };
This discrepancy shouldn't cause failures, but could cause out-of-order packets to be dropped unnecessarily.