Print this page
3942 inject sanity into ipadm tcp buffer size properties
3943 _snd_lowat_fraction tcp tunable has no effect
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Peng Dai <peng.dai@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libipadm/common/libipadm_impl.h
          +++ new/usr/src/lib/libipadm/common/libipadm_impl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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 (c) 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2013 by Delphix. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _LIBIPADM_IMPL_H
  26   27  #define _LIBIPADM_IMPL_H
  27   28  
  28   29  #ifdef  __cplusplus
  29   30  extern "C" {
  30   31  #endif
  31   32  
  32   33  #include <sys/socket.h>
↓ open down ↓ 78 lines elided ↑ open up ↑
 111  112  /* property set() callback */
 112  113  typedef ipadm_status_t  ipadm_pd_setf_t(ipadm_handle_t, const void *,
 113  114      ipadm_prop_desc_t *, const void *, uint_t, uint_t);
 114  115  
 115  116  /* property get() callback */
 116  117  typedef ipadm_status_t  ipadm_pd_getf_t(ipadm_handle_t, const void *,
 117  118      ipadm_prop_desc_t *, char *, uint_t *, uint_t, uint_t);
 118  119  
 119  120  struct ipadm_prop_desc {
 120  121          char            *ipd_name;      /* property name */
 121      -        uint_t          ipd_class;      /* prop. class - global/perif/both */
      122 +        char            *ipd_old_name;  /* for backward compatibility */
      123 +        uint_t          ipd_class;      /* prop. class - global/perif/both */
 122  124          uint_t          ipd_proto;      /* protocol to which property belongs */
 123  125          uint_t          ipd_flags;      /* see below */
 124  126          ipadm_pd_setf_t *ipd_set;       /* set callback function */
 125  127          ipadm_pd_getf_t *ipd_get_range; /* get range callback function */
 126  128          ipadm_pd_getf_t *ipd_get;       /* get value callback function */
 127  129  };
 128  130  
 129  131  /* ipd_flags values */
 130  132  #define IPADMPROP_MULVAL        0x00000001      /* property multi-valued */
 131  133  
↓ open down ↓ 100 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX