From 1f34d6ad01a5e271c14711615ea19fd75e0f227b Mon Sep 17 00:00:00 2001 From: angelos Date: Sun, 27 Apr 1997 04:34:07 +0000 Subject: [PATCH] PFKEY protocol control blocks. --- sys/net/pfkeyv2.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + -- 2.20.1