[Swan-commit] Changes to ref refs/heads/master
Andrew Cagney
cagney at vault.libreswan.fi
Tue Jul 16 11:46:40 UTC 2019
New commits:
commit c2e29a3364812b98f86042a5ffd3be9ae3bc7327
Author: Andrew Cagney <cagney at gnu.org>
Date: Mon Jul 15 19:44:50 2019 -0400
ikev1 nat: move IKEv1 code in nat_traversal_change_port_lookup() to v1_maybe_natify_initiator_endpoints()
Break up / simplify nat_traversal_change_port_lookup(md, st) as
follows:
pexpect(st_localport == st_interface->port)
if (md)
update remote endpoint
if (st_localport != md->iface->port)
// see aa3126b0c868020019e8b486b0543ddd950f908e
st_localport = md->iface->port
// moved to v1_maybe_natify_initiator_endpoints()
// calls natify_initiator_endpoints()
if (IKEv2 initiator state?)
st_localport = pluto_nat_port
st_remoteport = pluto_nat_port
other stuff
// deleted as dead
if st_localport != st_interface->port
st_interface = interface matching st_localport
(Suspect v1_maybe_natify_initiator_endpoints() can be further
simplified as callers know their state and "other stuff" seemingly
does nothing?)
More information about the Swan-commit
mailing list