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));
}
}
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;
return error;
}
-