ike: Don't send NAT keepalives if we have no path to the other peer
authorTobias Brunner <tobias@strongswan.org>
Mon, 16 Nov 2015 16:01:46 +0000 (17:01 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 3 Mar 2016 16:15:37 +0000 (17:15 +0100)
commit34f7d3b7aea5b5989ad28e93cc25d978a2e1ba01
tree3d27778e9e4f9a2a34c944f4968dd429f90b8465
parent35d0b8b152ed360b2a2087ef25abff5bd6896c18
ike: Don't send NAT keepalives if we have no path to the other peer

If there is no path to the other peer there is no point in trying to
send a NAT keepalive.

If the condition changes back and forth within the keepalive interval there
is a chance that multiple jobs get queued.
src/libcharon/sa/ike_sa.c