68 #include <libdlvnic.h>
69 #include <sys/types.h>
70 #include <sys/socket.h>
71 #include <sys/ib/ib_types.h>
72 #include <sys/processor.h>
73 #include <netinet/in.h>
74 #include <arpa/inet.h>
75 #include <net/if_types.h>
76 #include <stddef.h>
77 #include <stp_in.h>
78 #include <ofmt.h>
79
80 #define MAXPORT 256
81 #define MAXVNIC 256
82 #define BUFLEN(lim, ptr) (((lim) > (ptr)) ? ((lim) - (ptr)) : 0)
83 #define MAXLINELEN 1024
84 #define SMF_UPGRADE_FILE "/var/svc/profile/upgrade"
85 #define SMF_UPGRADEDATALINK_FILE "/var/svc/profile/upgrade_datalink"
86 #define SMF_DLADM_UPGRADE_MSG " # added by dladm(1M)"
87 #define DLADM_DEFAULT_COL 80
88
89 /*
90 * used by the wifi show-* commands to set up ofmt_field_t structures.
91 */
92 #define WIFI_CMD_SCAN 0x00000001
93 #define WIFI_CMD_SHOW 0x00000002
94 #define WIFI_CMD_ALL (WIFI_CMD_SCAN | WIFI_CMD_SHOW)
95
96 /* No larger than pktsum_t */
97 typedef struct brsum_s {
98 uint64_t drops;
99 uint64_t forward_dir;
100 uint64_t forward_mb;
101 uint64_t forward_unk;
102 uint64_t recv;
103 uint64_t sent;
104 } brsum_t;
105
106 /* No larger than pktsum_t */
107 typedef struct brlsum_s {
|
68 #include <libdlvnic.h>
69 #include <sys/types.h>
70 #include <sys/socket.h>
71 #include <sys/ib/ib_types.h>
72 #include <sys/processor.h>
73 #include <netinet/in.h>
74 #include <arpa/inet.h>
75 #include <net/if_types.h>
76 #include <stddef.h>
77 #include <stp_in.h>
78 #include <ofmt.h>
79
80 #define MAXPORT 256
81 #define MAXVNIC 256
82 #define BUFLEN(lim, ptr) (((lim) > (ptr)) ? ((lim) - (ptr)) : 0)
83 #define MAXLINELEN 1024
84 #define SMF_UPGRADE_FILE "/var/svc/profile/upgrade"
85 #define SMF_UPGRADEDATALINK_FILE "/var/svc/profile/upgrade_datalink"
86 #define SMF_DLADM_UPGRADE_MSG " # added by dladm(1M)"
87 #define DLADM_DEFAULT_COL 80
88 #define FFORCE "force" /* boolean_t */
89
90 /*
91 * used by the wifi show-* commands to set up ofmt_field_t structures.
92 */
93 #define WIFI_CMD_SCAN 0x00000001
94 #define WIFI_CMD_SHOW 0x00000002
95 #define WIFI_CMD_ALL (WIFI_CMD_SCAN | WIFI_CMD_SHOW)
96
97 /* No larger than pktsum_t */
98 typedef struct brsum_s {
99 uint64_t drops;
100 uint64_t forward_dir;
101 uint64_t forward_mb;
102 uint64_t forward_unk;
103 uint64_t recv;
104 uint64_t sent;
105 } brsum_t;
106
107 /* No larger than pktsum_t */
108 typedef struct brlsum_s {
|