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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_dhchap.h
          +++ new/usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_dhchap.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Emulex.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       28 + */
  26   29  
  27   30  #ifndef _EMLXS_DHCHAP_H
  28   31  #define _EMLXS_DHCHAP_H
  29   32  
  30   33  #ifdef  __cplusplus
  31   34  extern "C" {
  32   35  #endif
  33   36  
  34   37  #ifdef DHCHAP_SUPPORT
  35   38  #include <sys/random.h>
↓ open down ↓ 233 lines elided ↑ open up ↑
 269  272          uint32_t                authentication_timeout;
 270  273          uint32_t                authentication_mode;
 271  274          uint32_t                bidirectional:1;
 272  275          uint32_t                reserved:31;
 273  276          uint32_t                authentication_type_priority[4];
 274  277          uint32_t                hash_priority[4];
 275  278          uint32_t                dh_group_priority[8];
 276  279          uint32_t                reauthenticate_time_interval;
 277  280  
 278  281          dfc_auth_status_t       auth_status;
 279      -        time_t                  auth_time;
      282 +        uint32_t                auth_time;
 280  283          struct emlxs_node       *node;
 281  284  
 282  285          struct emlxs_auth_cfg   *prev;
 283  286          struct emlxs_auth_cfg   *next;
 284  287  } emlxs_auth_cfg_t;
 285  288  
 286  289  
 287  290  typedef struct emlxs_auth_key
 288  291  {
 289  292          NAME_TYPE               local_entity;           /* host wwpn */
↓ open down ↓ 59 lines elided ↑ open up ↑
 349  352  
 350  353          int32_t                 state;
 351  354  #define ELX_FABRIC_STATE_UNKNOWN        0x00
 352  355  #define ELX_FABRIC_AUTH_DISABLED        0x01
 353  356  #define ELX_FABRIC_AUTH_FAILED          0x02
 354  357  #define ELX_FABRIC_AUTH_SUCCESS         0x03
 355  358  #define ELX_FABRIC_IN_AUTH              0x04
 356  359  #define ELX_FABRIC_IN_REAUTH            0x05
 357  360  
 358  361          dfc_auth_status_t       auth_status;  /* Fabric auth status */
 359      -        time_t                  auth_time;
      362 +        uint32_t                auth_time;
 360  363  
 361  364  } emlxs_port_dhc_t;
 362  365  
 363  366  
 364  367  /* Node Events */
 365  368  #define NODE_EVENT_DEVICE_RM            0x0     /* Auth response timeout and */
 366  369                                                  /* fail */
 367  370  #define NODE_EVENT_DEVICE_RECOVERY      0x1     /* Auth response timeout and */
 368  371                                                  /* recovery */
 369  372  #define NODE_EVENT_RCV_AUTH_MSG         0x2     /* Unsolicited Auth received */
↓ open down ↓ 441 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX