filtering out non matching path probing pairs explicitly

This commit is contained in:
Martin Willi
2008-05-23 15:43:42 +00:00
parent 0672aa7b0e
commit de3d65a132
+5
View File
@@ -281,6 +281,11 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet)
charon->kernel_interface, other);
if (me)
{
if (me->get_family(me) != other->get_family(other))
{
me->destroy(me);
continue;
}
/* reuse port for an active address, 4500 otherwise */
me->set_port(me, me->ip_equals(me, me_old) ?
me_old->get_port(me_old) : IKEV2_NATT_PORT);