summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-11-26 13:07:53 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-11-26 13:07:53 +0000
commitc766945411eb532507b6f9931e809f31053da263 (patch)
treef8b0880aa42afd622a6010e9147305745e3a5923 /sys
parent31ec534d0dee5e47f7db5f37018c4a9e8246fcd5 (diff)
add pfkey sysctl subtree; ok deraadt
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/socket.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 6fdb8135d12..8c8371389eb 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: socket.h,v 1.47 2004/02/24 21:43:56 tedu Exp $ */
+/* $OpenBSD: socket.h,v 1.48 2004/11/26 13:07:52 markus Exp $ */
/* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */
/*
@@ -303,6 +303,17 @@ struct sockcred {
}
/*
+ * PF_KEY - Key Management
+ */
+#define NET_KEY_SADB_DUMP 1 /* return SADB */
+#define NET_KEY_MAXID 2
+
+#define CTL_NET_KEY_NAMES { \
+ { 0, 0 }, \
+ { "sadb_dump", CTLTYPE_STRUCT }, \
+}
+
+/*
* PF_BPF not really a family, but connected under CTL_NET
*/
#define NET_BPF_BUFSIZE 1 /* default buffer size */
@@ -315,7 +326,6 @@ struct sockcred {
{ "maxbufsize", CTLTYPE_INT }, \
}
-
/*
* Maximum queue length specifiable by listen(2).
*/