summaryrefslogtreecommitdiff
path: root/usr/src/cmd/flowstat
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-02-11 12:44:06 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-02-11 12:44:06 +0000
commitdda64338ab571a14cbc6685090c1013091452263 (patch)
tree95b903e334df28f774348f85335dcf14f32ddbd7 /usr/src/cmd/flowstat
parent9ecb333d56db4baf68b07887f9fbd5eae0698d89 (diff)
parent0e73d2e3a5545dcdc7825a3ad646c68a735836dd (diff)
downloadillumos-joyent-dda64338ab571a14cbc6685090c1013091452263.tar.gz
[illumos-gate merge]
commit 0e73d2e3a5545dcdc7825a3ad646c68a735836dd 10131 fmtmsg is bitwise, not streetwise commit 399dcf08ed1dc7e6abf8d7e5dc9447e11047c9f2 10052 "dladm show-ether" should pick one kstat snapshot and stick with it commit 77bcc8e3af50fa7cd2cf404790d694bc29037859 9623 zfs.1m uses wrong snapshot names in Example 15 commit 6062513a89a98a278aea621a2e591ba8df1a8b8e 10142 smatch fix for who commit a90997d2f0a442a8aa8a56cbbbbf577716a18742 10347 git-pbchk requires more python3 fixes commit 1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a 10100 Illumos is confused about calloc() arguments commit 0bead3cac461a1ad4d49bae1dc8a3be05110aa74 10338 ficl-sys: add gfx primitives commit 0e3b7565e6fd42aa8b3cf5b0c25be52203b47fb1 10340 uts: tem should upport unicode
Diffstat (limited to 'usr/src/cmd/flowstat')
-rw-r--r--usr/src/cmd/flowstat/flowstat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/cmd/flowstat/flowstat.c b/usr/src/cmd/flowstat/flowstat.c
index ab1797922c..e772470f9d 100644
--- a/usr/src/cmd/flowstat/flowstat.c
+++ b/usr/src/cmd/flowstat/flowstat.c
@@ -27,6 +27,10 @@
* Copyright 2017 Joyent, Inc.
*/
+/*
+ * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
+ */
+
#include <stdio.h>
#include <locale.h>
#include <stdarg.h>
@@ -426,7 +430,7 @@ query_flow_stats(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
prev_stat = flow_node->fc_stat;
/* Query library for current stats */
- curr_stat = dladm_flow_stat_query(flowname);
+ curr_stat = dladm_flow_stat_query(handle, flowname);
if (curr_stat == NULL)
goto done;
@@ -491,7 +495,7 @@ dump_one_flow_stats(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
char *flowname = attr->fa_flowname;
void *stat;
- stat = dladm_flow_stat_query_all(flowname);
+ stat = dladm_flow_stat_query_all(handle, flowname);
if (stat == NULL)
goto done;
print_all_stats(stat);