summaryrefslogtreecommitdiff
path: root/keyexchange/isakmpd-20041012/pf_key_v2.c
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-07-30 22:18:52 +0000
committerOthmar Gsenger <otti@anytun.org>2007-07-30 22:18:52 +0000
commit623b1f7b88a9fd6fdb982f82b776f306e858276e (patch)
tree6f5939a47f33df632146d9e7e662a3249ff4d2ce /keyexchange/isakmpd-20041012/pf_key_v2.c
parentadded keyexchange (diff)
pf_key umgestellt auf unix socket
Diffstat (limited to 'keyexchange/isakmpd-20041012/pf_key_v2.c')
-rw-r--r--keyexchange/isakmpd-20041012/pf_key_v2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyexchange/isakmpd-20041012/pf_key_v2.c b/keyexchange/isakmpd-20041012/pf_key_v2.c
index d8cbc35..5f7fd23 100644
--- a/keyexchange/isakmpd-20041012/pf_key_v2.c
+++ b/keyexchange/isakmpd-20041012/pf_key_v2.c
@@ -31,6 +31,9 @@
* This code was written under funding by Ericsson Radio Systems.
*/
+#include <sys/stat.h>
+#include <fcntl.h>
+
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/queue.h>
@@ -518,7 +521,7 @@ pf_key_v2_open(void)
/* Open the socket we use to speak to IPsec. */
pf_key_v2_socket = -1;
- fd = socket(PF_KEY, SOCK_RAW, PF_KEY_V2);
+ fd = socket(PF_UNIX, SOCK_RAW, 0);
if (fd == -1) {
log_error("pf_key_v2_open: "
"socket (PF_KEY, SOCK_RAW, PF_KEY_V2) failed");