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,29 **** --- 20,33 ---- */ /* * 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,55 **** --- 50,60 ---- * (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 *);