summaryrefslogtreecommitdiff
path: root/usr/src/cmd/flowstat/flowstat.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-03-04 11:34:31 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-03-04 11:34:31 +0000
commitc175f5f01ce89aee1b6fd2e10a595027710c9832 (patch)
treed7e810d8438c73ff1f705f851dea54fc2f1f8be2 /usr/src/cmd/flowstat/flowstat.c
parent8b3260f28797ca8e7c1d1573394f2eaa32abb5be (diff)
parent3d349c3119b5b6e21daba1ce004cf4625b25d67f (diff)
downloadillumos-joyent-c175f5f01ce89aee1b6fd2e10a595027710c9832.tar.gz
[illumos-gate merge]
commit 3d349c3119b5b6e21daba1ce004cf4625b25d67f 12342 bandwidth display badly formatted in flowstat, dlstat, and dladm commit 9dc2843d4266243e87f5d9de7a90b86235a6da08 4508 flowadm not working as documented, or documentation incorrect 4538 flowadm man page does not list lport and rport as output fields for show-flow 7210 flowadm does not have show-usage command described in the manual page commit bc576fff266b5ed3db0ef5d8196b7440cdefbb8b 12325 ahci: variable may be used uninitialized commit 45948e49c407e4fc264fdd289ed632d6639e009d 11493 aggr needs support for multiple pseudo rx groups commit b69c34dad3717624ff6b4f32b71014ee05b6a678 12271 "name" member of "struct option" should be const commit 84de666edc7f7d835057ae4807a387447c086bcf 11490 SRS ring polling disabled for VLANs 11491 Want DLS bypass for VLAN traffic 11492 add VLVF bypass to ixgbe core 2869 duplicate packets with vnics over aggrs 11489 DLS stat delete and aggr kstat can deadlock commit 20f5062b9c5143e4b4bd21245fcebdb21d40c08c 12344 zpool iostat output formatting error Conflicts: usr/src/uts/common/sys/mac_impl.h usr/src/uts/common/io/mac/mac_datapath_setup.c usr/src/uts/common/io/mac/mac.c usr/src/uts/common/io/ixgbe/ixgbe_sw.h usr/src/uts/common/io/ixgbe/ixgbe_main.c usr/src/uts/common/io/aggr/aggr_grp.c usr/src/man/man1m/flowadm.1m
Diffstat (limited to 'usr/src/cmd/flowstat/flowstat.c')
-rw-r--r--usr/src/cmd/flowstat/flowstat.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/src/cmd/flowstat/flowstat.c b/usr/src/cmd/flowstat/flowstat.c
index e772470f9d..a0e2b85f32 100644
--- a/usr/src/cmd/flowstat/flowstat.c
+++ b/usr/src/cmd/flowstat/flowstat.c
@@ -31,6 +31,10 @@
* Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
*/
+/*
+ * Copyright 2020 Peter Tribble.
+ */
+
#include <stdio.h>
#include <locale.h>
#include <stdarg.h>
@@ -139,7 +143,7 @@ typedef struct history_fields_buf_s {
char history_rbytes[10];
char history_opackets[9];
char history_obytes[10];
- char history_bandwidth[14];
+ char history_bandwidth[15];
} history_fields_buf_t;
static ofmt_field_t history_fields[] = {
@@ -156,7 +160,7 @@ static ofmt_field_t history_fields[] = {
offsetof(history_fields_buf_t, history_opackets), print_default_cb},
{ "OBYTES", 11,
offsetof(history_fields_buf_t, history_obytes), print_default_cb},
-{ "BANDWIDTH", 15,
+{ "BANDWIDTH", 16,
offsetof(history_fields_buf_t, history_bandwidth), print_default_cb},
NULL_OFMT}
;
@@ -167,7 +171,7 @@ typedef struct history_l_fields_buf_s {
char history_l_etime[13];
char history_l_rbytes[8];
char history_l_obytes[8];
- char history_l_bandwidth[14];
+ char history_l_bandwidth[15];
} history_l_fields_buf_t;
static ofmt_field_t history_l_fields[] = {
@@ -182,7 +186,7 @@ static ofmt_field_t history_l_fields[] = {
offsetof(history_l_fields_buf_t, history_l_rbytes), print_default_cb},
{ "OBYTES", 9,
offsetof(history_l_fields_buf_t, history_l_obytes), print_default_cb},
-{ "BANDWIDTH", 15,
+{ "BANDWIDTH", 16,
offsetof(history_l_fields_buf_t, history_l_bandwidth),
print_default_cb},
NULL_OFMT}
@@ -544,7 +548,7 @@ dump_all_flow_stats(dladm_flow_attr_t *attrp, void *arg, datalink_id_t linkid,
int
main(int argc, char *argv[])
{
- dladm_status_t status;
+ dladm_status_t status;
int option;
boolean_t r_arg = B_FALSE;
boolean_t t_arg = B_FALSE;
@@ -790,7 +794,7 @@ show_history_time(dladm_usage_t *history, void *arg)
{
show_history_state_t *state = (show_history_state_t *)arg;
char buf[DLADM_STRSIZE];
- history_l_fields_buf_t ubuf;
+ history_l_fields_buf_t ubuf;
time_t time;
double bw;
dladm_flow_attr_t attr;