]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/fsm.c
ipsec-317.220.1.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / fsm.c
index 5e5a05460c893e1f27fb9c62348bb8f3c6e4c8d4..0dc4a98f4f87d3a646174d2c5025d82c929f4c34 100644 (file)
@@ -47,7 +47,7 @@ void
 fsm_set_state(int *var, int state)
 {   
     *var = state;
-    plog(ASL_LEVEL_DEBUG, "****** state changed to: %s\n", s_isakmp_state(0, 0, state));                                                                                    
+    plog(ASL_LEVEL_NOTICE, "state changed to: %s\n", s_isakmp_state(0, 0, state));
 }
 
 
@@ -247,13 +247,7 @@ fsm_ikev1_phase1_send_response(phase1_handle_t *iph1, vchar_t *msg)
     }
     
     if (error) {
-        u_int32_t address;
-        if (iph1->remote->ss_family == AF_INET)
-            address = ((struct sockaddr_in *)iph1->remote)->sin_addr.s_addr;
-        else {
-            address = 0;
-        }
-        vpncontrol_notify_ike_failed(error, FROM_LOCAL, address, 0, NULL);
+        vpncontrol_notify_ike_failed(error, FROM_LOCAL, iph1_get_remote_v4_address(iph1), 0, NULL);
     }
     
     return error;
@@ -389,4 +383,3 @@ fsm_ikev1_phase2_send_response(phase2_handle_t *iph2, vchar_t *msg)
     return error;
     
 }
-