diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2020-12-15 15:53:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 15:53:01 +0000 |
commit | 6ea7cb044eee423e4896dfebccfa36588048d8c5 (patch) | |
tree | 62ae3b3c2944684029f267d53e13f483f9225ba4 | |
parent | 50e8edabaa2f02c3345ce3eff9d45a85c51d5fb2 (diff) |
Initialize ebpf.plugin variables (#10395)
-rw-r--r-- | collectors/ebpf.plugin/ebpf.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |