Print this page
Bayard's initial drop, needs finishing, or at least testing.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ipsec_impl.h
          +++ new/usr/src/uts/common/inet/ipsec_impl.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _INET_IPSEC_IMPL_H
  27   28  #define _INET_IPSEC_IMPL_H
  28   29  
  29   30  #include <inet/ip.h>
  30   31  #include <inet/ipdrop.h>
  31   32  
  32   33  #ifdef  __cplusplus
  33   34  extern "C" {
↓ open down ↓ 744 lines elided ↑ open up ↑
 778  779          boolean_t               ipsec_inbound_v4_policy_present;
 779  780          boolean_t               ipsec_outbound_v4_policy_present;
 780  781          boolean_t               ipsec_inbound_v6_policy_present;
 781  782          boolean_t               ipsec_outbound_v6_policy_present;
 782  783  
 783  784  /* spd.c */
 784  785          /*
 785  786           * Because policy needs to know what algorithms are supported, keep the
 786  787           * lists of algorithms here.
 787  788           */
 788      -        kmutex_t                ipsec_alg_lock;
      789 +        krwlock_t               ipsec_alg_lock;
 789  790  
 790  791          uint8_t                 ipsec_nalgs[IPSEC_NALGTYPES];
 791  792          ipsec_alginfo_t *ipsec_alglists[IPSEC_NALGTYPES][IPSEC_MAX_ALGS];
 792  793  
 793  794          uint8_t         ipsec_sortlist[IPSEC_NALGTYPES][IPSEC_MAX_ALGS];
 794  795  
 795  796          int             ipsec_algs_exec_mode[IPSEC_NALGTYPES];
 796  797  
 797  798          uint32_t        ipsec_tun_spd_hashsize;
 798  799          /*
↓ open down ↓ 234 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX