@cryptotaxi247 / netdata-1 / commits / 6ea7cb044

Initialize ebpf.plugin variables (#10395)

thiagoftsm committed Dec 15, 2020 at 15:53 UTC 6ea7cb044eee423e4896dfebccfa36588048d8c5
1 file changed +4 -4
collectors/ebpf.plugin/ebpf.c
+4 -4
@@ -119,10 +119,7 @@ ebpf_module_t ebpf_modules[] = {
119 ebpf_process_stat_t *global_process_stat = NULL;
120
121 //Network viewer
122 -ebpf_network_viewer_options_t network_viewer_opt = { .max_dim = NETDATA_NV_CAP_VALUE, .hostname_resolution_enabled = 0,
123 - .service_resolution_enabled = 0, .excluded_port = NULL,
124 - .included_port = NULL, .names = NULL, .ipv4_local_ip = NULL,
125 - .ipv6_local_ip = NULL };
122 +ebpf_network_viewer_options_t network_viewer_opt;
123
124 /*****************************************************************
125 *
@@ -1782,6 +1779,9 @@ static void parse_args(int argc, char **argv)
1779 {0, 0, 0, 0}
1780 };
1781
1782 + memset(&network_viewer_opt, 0, sizeof(network_viewer_opt));
1783 + network_viewer_opt.max_dim = NETDATA_NV_CAP_VALUE;
1784 +
1785 if (argc > 1) {
1786 int n = (int)str2l(argv[1]);
1787 if (n > 0) {