git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added info about new config parameters.
[stg.git]
/
projects
/
stargazer
/
plugins
/
capture
/
cap_nf
/
cap_nf.cpp
diff --git
a/projects/stargazer/plugins/capture/cap_nf/cap_nf.cpp
b/projects/stargazer/plugins/capture/cap_nf/cap_nf.cpp
index 8c4fdc2dd350cf9dbc9306d59273cf39446d2366..ce42d911ad728d5845af8a37c34078e126ce820b 100644
(file)
--- a/
projects/stargazer/plugins/capture/cap_nf/cap_nf.cpp
+++ b/
projects/stargazer/plugins/capture/cap_nf/cap_nf.cpp
@@
-59,9
+59,6
@@
return cnc.GetPlugin();
NF_CAP::NF_CAP()
: traffCnt(NULL),
NF_CAP::NF_CAP()
: traffCnt(NULL),
- settings(),
- tidTCP(),
- tidUDP(),
runningTCP(false),
runningUDP(false),
stoppedTCP(true),
runningTCP(false),
runningUDP(false),
stoppedTCP(true),
@@
-70,7
+67,6
@@
NF_CAP::NF_CAP()
portU(0),
sockTCP(-1),
sockUDP(-1),
portU(0),
sockTCP(-1),
sockUDP(-1),
- errorStr(),
logger(GetPluginLogger(GetStgLogger(), "cap_nf"))
{
}
logger(GetPluginLogger(GetStgLogger(), "cap_nf"))
{
}
@@
-84,7
+80,7
@@
int NF_CAP::ParseSettings()
std::vector<PARAM_VALUE>::iterator it;
for (it = settings.moduleParams.begin(); it != settings.moduleParams.end(); ++it)
{
std::vector<PARAM_VALUE>::iterator it;
for (it = settings.moduleParams.begin(); it != settings.moduleParams.end(); ++it)
{
- if (it->param == "TCPPort")
+ if (it->param == "TCPPort"
&& !it->value.empty()
)
{
if (str2x(it->value[0], portT))
{
{
if (str2x(it->value[0], portT))
{
@@
-94,7
+90,7
@@
for (it = settings.moduleParams.begin(); it != settings.moduleParams.end(); ++it
}
continue;
}
}
continue;
}
- if (it->param == "UDPPort")
+ if (it->param == "UDPPort"
&& !it->value.empty()
)
{
if (str2x(it->value[0], portU))
{
{
if (str2x(it->value[0], portU))
{