summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-04-27 04:34:08 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-04-27 04:34:08 +0000
commit977267cd4cfbbb0d517c88331ba19b2e920d2e79 (patch)
tree295b28aa4a377953072593ca2b9713ddd515560f /sys
parente9769c0a198bc39f60215c408837473e5fcca629 (diff)
PFKEY protocol control blocks.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfkeyv2.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index a013cad5176..d8eaef81acd 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -25,6 +25,15 @@
#define PF_KEY_V2 0
+struct pfkeycb
+{
+ LIST_ENTRY(pfkeycb) pfkey_list;
+ struct socket *pfkey_socket;
+ struct sockproto pfkey_proto;
+ u_int32_t pfkey_flags;
+#define PFKEYv2_REGISTERED 0x1
+};
+
struct sadb_msg
{
u_int8_t sadb_msg_version; /* Must be PF_KEY_V2 */
@@ -305,3 +314,10 @@ struct sadb_spirange
#define SADB_DPD_NATO 4
#define SADB_DPD_MAX 4
+
+#define sotopfkeycb(so) ((structy pfkeycb *)(so)->so->pcb)
+
+#ifdef _KERNEL
+LIST_HEAD(, pfkeycb) pfkeycb; /* head of list */
+#endif
+