From: Maxim Mamontov Date: Tue, 7 Dec 2010 15:22:18 +0000 (+0200) Subject: В плагинах захвата трафика для Divert-сокетов и BPF реализована X-Git-Tag: 2.407-rc3~334 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/93c7c1b8634f7dbe83b710df9908db9706cbe755?ds=sidebyside В плагинах захвата трафика для Divert-сокетов и BPF реализована инициализация членов через список инициализации в конструкторе --- diff --git a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index a76629fb..59fc06a9 100644 --- a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp +++ b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp @@ -96,9 +96,11 @@ return "Divert_cap v.1.0"; } //----------------------------------------------------------------------------- DIVERT_CAP::DIVERT_CAP() + : port(0), + nonstop(false), + isRunning(false), + traffCnt(NULL) { -isRunning = false; -nonstop = false; } //----------------------------------------------------------------------------- void DIVERT_CAP::SetTraffcounter(TRAFFCOUNTER * tc) diff --git a/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.cpp b/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.cpp index 0ebec5b6..27141b91 100644 --- a/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.cpp +++ b/projects/stargazer/plugins/capture/ether_freebsd/ether_cap.cpp @@ -176,9 +176,11 @@ return "bpf_cap v.1.0"; } //----------------------------------------------------------------------------- BPF_CAP::BPF_CAP() + : nonstop(false), + isRunning(false), + capSock(-1), + traffCnt(NULL) { -isRunning = false; -nonstop = false; } //----------------------------------------------------------------------------- void BPF_CAP::SetSettings(const MODULE_SETTINGS & s)