diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-04-27 04:34:08 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-04-27 04:34:08 +0000 |
commit | 977267cd4cfbbb0d517c88331ba19b2e920d2e79 (patch) | |
tree | 295b28aa4a377953072593ca2b9713ddd515560f /sys/net | |
parent | e9769c0a198bc39f60215c408837473e5fcca629 (diff) |
PFKEY protocol control blocks.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfkeyv2.h | 16 |
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 + |