summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-09-29 09:11:22 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-09-29 09:11:22 +0000
commit8a2ff2888721983d3df5cfa2def28affd57daaa7 (patch)
treea6ee778bf7cedb168a9c253c2fba5c3e15eb2240 /sys
parent7e2a7ead9b171ee1ce454f0ae7411530fe8a57b3 (diff)
Critical reliability fix for IPsec. On i386 splsoftclock is not
a perfect emulation of a "real" architecture's splsoftclock, as it assumes it is only invoked from higher spl levels. Use splsoftnet instead.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index 70d404137aa..bbb148b8e91 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.41 1999/08/10 11:35:26 ho Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.42 1999/09/29 09:11:21 niklas Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -397,9 +397,11 @@ htonq(u_int64_t q)
/*
* Protects all tdb lists.
- * Must at least be splsoftclock.
+ * Must at least be splsoftnet (note: do not use splsoftclock as it is
+ * special on some architectures, assuming it is always an spl lowering
+ * operation).
*/
-#define spltdb splsoftclock
+#define spltdb splsoftnet
extern int encdebug;
extern int ipsec_in_use;