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:
e001cc2
)
conftest: Disable reset_seq hook on systems other than Linux
author
Tobias Brunner
<tobias@strongswan.org>
Wed, 21 Aug 2013 09:27:28 +0000
(11:27 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Wed, 21 Aug 2013 09:27:28 +0000
(11:27 +0200)
Fixes #386.
src/conftest/hooks/reset_seq.c
patch
|
blob
|
history
diff --git
a/src/conftest/hooks/reset_seq.c
b/src/conftest/hooks/reset_seq.c
index
1009773
..
a77b10e
100644
(file)
--- a/
src/conftest/hooks/reset_seq.c
+++ b/
src/conftest/hooks/reset_seq.c
@@
-36,6
+36,10
@@
#include "hook.h"
+/* this hook is currently only supported on Linux (systems like FreeBSD don't
+ * actually provide an interface to change the sequence numbers of SAs) */
+#ifdef __linux__
+
#include <linux/xfrm.h>
#include <unistd.h>
#include <errno.h>
@@
-214,3
+218,5
@@
hook_t *reset_seq_hook_create(char *name)
return &this->hook;
}
+
+#endif /* __linux__ */