From 6ea7cb044eee423e4896dfebccfa36588048d8c5 Mon Sep 17 00:00:00 2001 From: thiagoftsm Date: Tue, 15 Dec 2020 15:53:01 +0000 Subject: Initialize ebpf.plugin variables (#10395) --- collectors/ebpf.plugin/ebpf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'collectors') diff --git a/collectors/ebpf.plugin/ebpf.c b/collectors/ebpf.plugin/ebpf.c index dba20598e2..6cd8b96aa4 100644 --- a/collectors/ebpf.plugin/ebpf.c +++ b/collectors/ebpf.plugin/ebpf.c @@ -119,10 +119,7 @@ ebpf_module_t ebpf_modules[] = { ebpf_process_stat_t *global_process_stat = NULL; //Network viewer -ebpf_network_viewer_options_t network_viewer_opt = { .max_dim = NETDATA_NV_CAP_VALUE, .hostname_resolution_enabled = 0, - .service_resolution_enabled = 0, .excluded_port = NULL, - .included_port = NULL, .names = NULL, .ipv4_local_ip = NULL, - .ipv6_local_ip = NULL }; +ebpf_network_viewer_options_t network_viewer_opt; /***************************************************************** * @@ -1782,6 +1779,9 @@ static void parse_args(int argc, char **argv) {0, 0, 0, 0} }; + memset(&network_viewer_opt, 0, sizeof(network_viewer_opt)); + network_viewer_opt.max_dim = NETDATA_NV_CAP_VALUE; + if (argc > 1) { int n = (int)str2l(argv[1]); if (n > 0) { -- cgit v1.2.3