summaryrefslogtreecommitdiff
path: root/sys/netipsec/ipsec.h
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-09-01 05:35:55 +0000
committerSam Leffler <sam@FreeBSD.org>2003-09-01 05:35:55 +0000
commit6464079f103e7c50dd90d328663098eb1bbecee0 (patch)
treec44de6fcda02feb74d7dccf3bde0ea476169307f /sys/netipsec/ipsec.h
parentee6e0476d2220c5586dbb9b6f85baa41b7fea1e3 (diff)
Notes
Diffstat (limited to 'sys/netipsec/ipsec.h')
-rw-r--r--sys/netipsec/ipsec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec.h b/sys/netipsec/ipsec.h
index 7f0a021b23f3..0c518ff4ea97 100644
--- a/sys/netipsec/ipsec.h
+++ b/sys/netipsec/ipsec.h
@@ -71,6 +71,7 @@ struct secpolicyindex {
/* Security Policy Data Base */
struct secpolicy {
LIST_ENTRY(secpolicy) chain;
+ struct mtx lock;
u_int refcnt; /* reference count */
struct secpolicyindex spidx; /* selector */
@@ -108,6 +109,7 @@ struct ipsecrequest {
struct secasvar *sav; /* place holder of SA for use */
struct secpolicy *sp; /* back pointer to SP */
+ struct mtx lock; /* to interlock updates */
};
/* security policy in PCB */
@@ -322,6 +324,9 @@ extern int crypto_support;
/* for openbsd compatibility */
#define DPRINTF(x) do { if (ipsec_debug) printf x; } while (0)
+extern struct ipsecrequest *ipsec_newisr(void);
+extern void ipsec_delisr(struct ipsecrequest *);
+
struct tdb_ident;
extern struct secpolicy *ipsec_getpolicy __P((struct tdb_ident*, u_int));
struct inpcb;