Print this page
4786 emlxs shouldn't abuse ddi_get_time(9f)

*** 21,30 **** --- 21,33 ---- /* * Copyright 2010 Emulex. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright 2014 Nexenta Systems, Inc. All rights reserved. + */ #include <emlxs.h> #ifdef DHCHAP_SUPPORT
*** 7599,7609 **** emlxs_port_dhc_t *port_dhc = &port->port_dhc; emlxs_node_dhc_t *node_dhc = &ndlp->node_dhc; uint32_t drv_time; uint32_t timeout; uint32_t reauth_tmo; ! time_t last_auth_time; node_dhc->flag &= ~NLP_SET_REAUTH_TIME; if ((status == ENABLE) && node_dhc->auth_cfg.reauthenticate_time_interval) { --- 7602,7612 ---- emlxs_port_dhc_t *port_dhc = &port->port_dhc; emlxs_node_dhc_t *node_dhc = &ndlp->node_dhc; uint32_t drv_time; uint32_t timeout; uint32_t reauth_tmo; ! uint32_t last_auth_time; node_dhc->flag &= ~NLP_SET_REAUTH_TIME; if ((status == ENABLE) && node_dhc->auth_cfg.reauthenticate_time_interval) {
*** 9654,9664 **** char s_rwwpn[64]; emlxs_auth_cfg_t *auth_cfg; dfc_auth_status_t *auth_status; NODELIST *ndlp; uint32_t rc; ! time_t auth_time; uint32_t update; /* Return is authentication is not enabled */ if (cfg[CFG_AUTH_ENABLE].current == 0) { EMLXS_MSGF(EMLXS_CONTEXT, &emlxs_fcsp_debug_msg, --- 9657,9667 ---- char s_rwwpn[64]; emlxs_auth_cfg_t *auth_cfg; dfc_auth_status_t *auth_status; NODELIST *ndlp; uint32_t rc; ! uint32_t auth_time; uint32_t update; /* Return is authentication is not enabled */ if (cfg[CFG_AUTH_ENABLE].current == 0) { EMLXS_MSGF(EMLXS_CONTEXT, &emlxs_fcsp_debug_msg,