New commits:
commit c2e29a3364812b98f86042a5ffd3be9ae3bc7327
Author: Andrew Cagney <[email protected]>
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?)

_______________________________________________
Swan-commit mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-commit

Reply via email to