xfrm: use the full 64 bit EESP sequence number on receive
EESP transmits the full 64 bit sequence number in the peer header, but
the receiver only looked at the lower 32 bits and derived the high part
from the local state, exactly as it is done for ESP with ESN. So the
transmitted seq_hi was never read and the anti-replay window was a 32
bit window, although the draft defines the sequence number as a full
64 bit counter.
Take the 64 bit sequence number from the peer header and check the
anti-replay window over the full 64 bit counter. EESP SAs always use
the ESN replay state now, so the sequence number is a full 64 bit
counter on the sender side too.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
7 files changed