summaryrefslogtreecommitdiffstats
path: root/sys/net/pfkeyv2.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-27 01:34:06 +0000
committerangelos <angelos@openbsd.org>2001-06-27 01:34:06 +0000
commit7ba2b9eb86aa0925c4667500271fcbb880af76bb (patch)
treeab49d3dcadc203f6000578c53e717a75daaece16 /sys/net/pfkeyv2.c
parentimplement md 64 bit swaps; niklas@ ok (diff)
downloadwireguard-openbsd-7ba2b9eb86aa0925c4667500271fcbb880af76bb.tar.xz
wireguard-openbsd-7ba2b9eb86aa0925c4667500271fcbb880af76bb.zip
Don't cache packets that hit policies -- we'll do that at the PCB for
local packets.
Diffstat (limited to 'sys/net/pfkeyv2.c')
-rw-r--r--sys/net/pfkeyv2.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index cb37ee43350..f0c43398ffc 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.70 2001/06/26 18:56:31 angelos Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.71 2001/06/27 01:34:06 angelos Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -869,7 +869,7 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
sa.tdb_spi = reserve_spi(sprng->sadb_spirange_min,
sprng->sadb_spirange_max,
&sa.tdb_src, &sa.tdb_dst,
- sa.tdb_sproto, &rval, smsg->sadb_msg_seq);
+ sa.tdb_sproto, &rval);
if (sa.tdb_spi == 0)
goto ret;
@@ -961,6 +961,8 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
headers[SADB_EXT_KEY_ENCRYPT] = NULL;
headers[SADB_X_EXT_LOCAL_AUTH] = NULL;
+ newsa->tdb_seq = smsg->sadb_msg_seq;
+
rval = tdb_init(newsa, alg, &ii);
if (rval)
{
@@ -1085,6 +1087,8 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
headers[SADB_EXT_KEY_ENCRYPT] = NULL;
headers[SADB_X_EXT_LOCAL_AUTH] = NULL;
+ newsa->tdb_seq = smsg->sadb_msg_seq;
+
rval = tdb_init(newsa, alg, &ii);
if (rval)
{