diff options
author | 2001-05-29 01:19:37 +0000 | |
---|---|---|
committer | 2001-05-29 01:19:37 +0000 | |
commit | a7914fe2ebd90ffad5df9272e6bf73490f62e22d (patch) | |
tree | e47668f3867450a191cf2f482b30e82c8fd1cf63 /sys/netinet/ipsec_input.c | |
parent | Keep track of when a TDB was last marked/unmared as SKIPCRYPTO, and (diff) | |
download | wireguard-openbsd-a7914fe2ebd90ffad5df9272e6bf73490f62e22d.tar.xz wireguard-openbsd-a7914fe2ebd90ffad5df9272e6bf73490f62e22d.zip |
Record last use time for SAs.
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 11fa75441ba..d6eaf8ebe66 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.40 2001/05/27 03:49:14 angelos Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.41 2001/05/29 01:19:37 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -268,6 +268,8 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff, af = tdbp->tdb_dst.sa.sa_family; sproto = tdbp->tdb_sproto; + tdbp->tdb_last_used = time.tv_sec; + /* Sanity check */ if (m == NULL) { |