xfrm: Fix replay notification for esn.
commit0017c0b57500606aab894cdb02fdf3380ddd60ee
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 11 Mar 2013 09:32:16 +0000 (11 10:32 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 20 Mar 2013 10:57:52 +0000 (20 11:57 +0100)
tree79be87abec387e4f8e6a24afb16ea822e54e4938
parent85dfb745ee40232876663ae206cba35f24ab2a40
xfrm: Fix replay notification for esn.

We may miscalculate the sequence number difference from the
last time we send a notification if a sequence number wrap
occured in the meantime. We fix this by adding a separate
replay notify function for esn. Here we take the high bits
of the sequence number into account to calculate the
difference.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_replay.c