X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/fce29cd989a6ce7aa0e28bd9ade0752be16cb893..80318cb73f9fe1670dff6eb1801ec47bbf0ff285:/ipsec-tools/racoon/isakmp_ident.c?ds=sidebyside diff --git a/ipsec-tools/racoon/isakmp_ident.c b/ipsec-tools/racoon/isakmp_ident.c index 6488207..ff155e6 100644 --- a/ipsec-tools/racoon/isakmp_ident.c +++ b/ipsec-tools/racoon/isakmp_ident.c @@ -364,10 +364,12 @@ ident_i2recv(iph1, msg) } #ifdef ENABLE_NATT - if (NATT_AVAILABLE(iph1)) + if (NATT_AVAILABLE(iph1)) { plog(LLV_INFO, LOCATION, iph1->remote, "Selected NAT-T version: %s\n", vid_string_by_id(iph1->natt_options->version)); + ike_session_update_natt_version(iph1); + } #endif /* check SA payload and set approval SA for use */ @@ -1190,10 +1192,12 @@ ident_r1recv(iph1, msg) } #ifdef ENABLE_NATT - if (NATT_AVAILABLE(iph1)) + if (NATT_AVAILABLE(iph1)) { plog(LLV_INFO, LOCATION, iph1->remote, "Selected NAT-T version: %s\n", vid_string_by_id(iph1->natt_options->version)); + ike_session_update_natt_version(iph1); + } #endif /* check SA payload and set approval SA for use */