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>

@@ -20,10 +20,14 @@
  */
 /*
  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
+/*
+ * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
+ */
+
 #ifndef _LIBDLADM_IMPL_H
 #define _LIBDLADM_IMPL_H
 
 #include <sys/types.h>
 #include <sys/mac.h>

@@ -46,10 +50,11 @@
  * (e.g., dladm) and then passed to libdladm.
  */
 struct dladm_handle {
         int dld_fd;     /* file descriptor to DLD_CONTROL_DEV */
         int door_fd;    /* file descriptor to DLMGMT_DOOR */
+        kstat_ctl_t *dld_kcp;   /* for kstat consumers */
 };
 
 /* DLMGMT_DOOR can only be accessed by libdladm and dlmgmtd */
 extern dladm_status_t   dladm_door_fd(dladm_handle_t, int *);