Code Review
/
ric-app
/
admin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added more information in documenation and spell-check
[ric-app/admin.git]
/
src
/
protector-plugin
/
NetworkProtector.h
diff --git
a/src/protector-plugin/NetworkProtector.h
b/src/protector-plugin/NetworkProtector.h
index
8a69f15
..
e8750db
100644
(file)
--- a/
src/protector-plugin/NetworkProtector.h
+++ b/
src/protector-plugin/NetworkProtector.h
@@
-34,11
+34,13
@@
#define unlikely(x) (x)
#endif
#define unlikely(x) (x)
#endif
+extern bool report_mode_only;
+
class protector
{
public:
class protector
{
public:
- protector( bool
enforce, int windowSize_, int threshold_, double blockRate_
);
+ protector( bool
, int , int , double , bool rep=true
);
bool operator()(unsigned char *, size_t , unsigned char *, size_t *);
bool operator()(unsigned char *, size_t , unsigned char *, size_t *);
@@
-67,6
+69,7
@@
private:
sgnb_addition_response sgnb_resp;
std::string error_string;
sgnb_addition_response sgnb_resp;
std::string error_string;
+ bool report_mode_only;
};
#endif
};
#endif