]> git.ipfire.org Git - thirdparty/strongswan.git/commit - src/libcharon/sa/ike_sa.c
ikev2: Ignore roam events without MOBIKE but static local address
authorTobias Brunner <tobias@strongswan.org>
Tue, 15 Nov 2016 14:42:33 +0000 (15:42 +0100)
committerMartin Willi <martin@strongswan.org>
Fri, 17 Feb 2017 09:52:21 +0000 (10:52 +0100)
commitbe27e76869fe58d17ade1cf6d5a84926ce994ef1
tree49424fd0906021524b3d79f78932ced1dacca8bf
parent5a7a17b777592725cd4656c99a904bae567cbf3f
ikev2: Ignore roam events without MOBIKE but static local address

Disabling MOBIKE and statically configuring a local address should be
enough indication that the user doesn't want to roam to a different
address.  There might not be any routes that indicate we can use the
current address but it might still work (e.g. if the address is on an
interface that is not referenced in any routes and the address itself
is neither).  This way we avoid switching to another address for routes
that might be available on the system.

We currently don't make much use of COND_STALE anyway when MOBIKE is not
enabled, e.g. to avoid sending DPDs if the connection is seemingly down.
With MOBIKE enabled we don't exactly check that state but we do don't
send DPDs if there is no route/source address available.
src/libcharon/sa/ike_sa.c