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/ipsecah.h
          +++ new/usr/src/uts/common/inet/ipsecah.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_IPSECAH_H
  27   28  #define _INET_IPSECAH_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 ↓ 73 lines elided ↑ open up ↑
 107  108           * Keysock instance of AH.  There can be only one per stack instance.
 108  109           * Use casptr() on this because I don't set it until KEYSOCK_HELLO
 109  110           * comes down.
 110  111           * Paired up with the ah_pfkey_q is the ah_event, which will age SAs.
 111  112           */
 112  113          queue_t                 *ah_pfkey_q;
 113  114          timeout_id_t            ah_event;
 114  115  };
 115  116  typedef struct ipsecah_stack ipsecah_stack_t;
 116  117  
      118 +#define ipsecah_debug                   ipsecah_params[0].ipsecah_param_value
      119 +#define ipsecah_age_interval            ipsecah_params[1].ipsecah_param_value
      120 +#define ipsecah_age_int_max             ipsecah_params[1].ipsecah_param_max
      121 +#define ipsecah_reap_delay              ipsecah_params[2].ipsecah_param_value
      122 +#define ipsecah_replay_size             ipsecah_params[3].ipsecah_param_value
      123 +#define ipsecah_acquire_timeout         ipsecah_params[4].ipsecah_param_value
      124 +#define ipsecah_larval_timeout          ipsecah_params[5].ipsecah_param_value
      125 +#define ipsecah_default_soft_bytes      ipsecah_params[6].ipsecah_param_value
      126 +#define ipsecah_default_hard_bytes      ipsecah_params[7].ipsecah_param_value
      127 +#define ipsecah_default_soft_addtime    ipsecah_params[8].ipsecah_param_value
      128 +#define ipsecah_default_hard_addtime    ipsecah_params[9].ipsecah_param_value
      129 +#define ipsecah_default_soft_usetime    ipsecah_params[10].ipsecah_param_value
      130 +#define ipsecah_default_hard_usetime    ipsecah_params[11].ipsecah_param_value
      131 +#define ipsecah_log_unknown_spi         ipsecah_params[12].ipsecah_param_value
      132 +
 117  133  #endif  /* _KERNEL */
 118  134  
 119  135  /*
 120  136   * For now, only provide "aligned" version of header.
 121  137   * If aligned version is needed, we'll go with the naming conventions then.
 122  138   */
 123  139  
 124  140  typedef struct ah {
 125  141          uint8_t ah_nexthdr;
 126  142          uint8_t ah_length;
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX