summaryrefslogtreecommitdiff
path: root/usr/src/cmd/flowstat
diff options
context:
space:
mode:
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);