task-manager-v1: Clear retransmit alert on request retransmit
authorThomas Egerer <thomas.egerer@secunet.com>
Tue, 2 Oct 2018 13:02:59 +0000 (15:02 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Oct 2018 09:55:16 +0000 (11:55 +0200)
commit8c732b8e218fe10bb2694a95b88079c3040c059f
tree2d8b65f79433a53fa781d73440a44d5b01c80a73
parent2d3e20a839ca33eebe1b8d647f5059adbf7b8287
task-manager-v1: Clear retransmit alert on request retransmit

The task manager for IKEv1 issues a retransmit send alert in the
retransmit_packet() function. The corresponding retransmit cleared alert
however is only issued for exchanges we initiated after processing the
response in process_response().

For quick mode exchanges we may retransmit the second packet if the peer
(the initiator) does not send the third message in a timely manner. In
this case the retransmit send alert may never be cleared.

With this patch the retransmit cleared alert is issued for packets that
were retransmitted also when we are the responding party when we receive
the outstanding response.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libcharon/sa/ikev1/task_manager_v1.c