Print this page
10052 "dladm show-ether" should pick one kstat snapshot and stick with it
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gergo Doma <domag02@gmail.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdladm/common/libdlstat.h
          +++ new/usr/src/lib/libdladm/common/libdlstat.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   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
       28 + */
       29 +
  26   30  #ifndef _LIBDLSTAT_H
  27   31  #define _LIBDLSTAT_H
  28   32  
  29   33  /*
  30   34   * This file includes structures, macros and common routines shared by all
  31   35   * data-link administration, and routines which are used to retrieve and
  32   36   * display statistics.
  33   37   */
  34   38  
  35   39  #include <kstat.h>
↓ open down ↓ 236 lines elided ↑ open up ↑
 272  276  extern void             dladm_stats_total(pktsum_t *, pktsum_t *, pktsum_t *);
 273  277  extern void             dladm_stats_diff(pktsum_t *, pktsum_t *, pktsum_t *);
 274  278  
 275  279  extern dladm_stat_chain_t       *dladm_link_stat_query(dladm_handle_t,
 276  280                                      datalink_id_t, dladm_stat_type_t);
 277  281  extern dladm_stat_chain_t       *dladm_link_stat_diffchain(dladm_stat_chain_t *,
 278  282                                      dladm_stat_chain_t *, dladm_stat_type_t);
 279  283  extern dladm_stat_chain_t       *dladm_link_stat_query_all(dladm_handle_t,
 280  284                                      datalink_id_t, dladm_stat_type_t);
 281  285  
 282      -extern flow_stat_t              *dladm_flow_stat_query(const char *);
      286 +extern flow_stat_t              *dladm_flow_stat_query(dladm_handle_t,
      287 +                                    const char *);
 283  288  extern flow_stat_t              *dladm_flow_stat_diff(flow_stat_t *,
 284  289                                      flow_stat_t *);
 285      -extern name_value_stat_entry_t  *dladm_flow_stat_query_all(const char *);
      290 +extern name_value_stat_entry_t  *dladm_flow_stat_query_all(dladm_handle_t,
      291 +                                    const char *);
 286  292  
 287  293  #ifdef  __cplusplus
 288  294  }
 289  295  #endif
 290  296  
 291  297  #endif  /* _LIBDLSTAT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX