strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
999072e
)
allow to globally disable DOS protection by setting charon.dos_protection to no.
author
Tobias Brunner
<tobias@strongswan.org>
Wed, 26 Nov 2008 09:22:19 +0000
(09:22 -0000)
committer
Tobias Brunner
<tobias@strongswan.org>
Wed, 26 Nov 2008 09:22:19 +0000
(09:22 -0000)
src/charon/network/receiver.c
patch
|
blob
|
history
diff --git
a/src/charon/network/receiver.c
b/src/charon/network/receiver.c
index
18a4b4f
..
9c41352
100644
(file)
--- a/
src/charon/network/receiver.c
+++ b/
src/charon/network/receiver.c
@@
-382,6
+382,11
@@
receiver_t *receiver_create()
"charon.cookie_threshold", COOKIE_THRESHOLD_DEFAULT);
this->block_threshold = lib->settings->get_int(lib->settings,
"charon.block_threshold", BLOCK_THRESHOLD_DEFAULT);
+ if (!lib->settings->get_bool(lib->settings, "charon.dos_protection", TRUE))
+ {
+ this->cookie_threshold = 0;
+ this->block_threshold = 0;
+ }
this->job = callback_job_create((callback_job_cb_t)receive_packets,
this, NULL, NULL);