Slightly refactored port floating.

In case of MOBIKE, only float to port 4500 if the other peer actually supports MOBIKE.
This commit is contained in:
Tobias Brunner
2010-08-30 13:42:58 +02:00
parent be63a48c36
commit 277f02ce9e
5 changed files with 39 additions and 35 deletions
+8
View File
@@ -328,6 +328,14 @@ struct ike_sa_t {
*/
void (*set_other_host) (ike_sa_t *this, host_t *other);
/**
* Float to port 4500 (e.g. if a NAT is detected).
*
* The port of either endpoint is changed only if it is currently
* set to the default value of 500.
*/
void (*float_ports)(ike_sa_t *this);
/**
* Update the IKE_SAs host.
*