diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2004-08-10 16:17:06 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2004-08-10 16:17:06 +0000 |
commit | 02434494e5dce999aa66431f81ad4e467c2de522 (patch) | |
tree | 8e7725e3a3f74c7ee4fc859459122c1aa0be1ba6 /sys/net/pfkeyv2_convert.c | |
parent | 7d04bf8fce3cd95028d7b74d7863130feb233e34 (diff) |
Add SADB_X_EXT_LIFETIME_LASTUSE for use with isakmpd/DPD, adding this
extends the bitmap to 64bits. Also repair SADB_GET. hshoexer@ ok.
Diffstat (limited to 'sys/net/pfkeyv2_convert.c')
-rw-r--r-- | sys/net/pfkeyv2_convert.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c index 4891624f22a..7552bd67693 100644 --- a/sys/net/pfkeyv2_convert.c +++ b/sys/net/pfkeyv2_convert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkeyv2_convert.c,v 1.20 2004/06/24 19:35:25 tholo Exp $ */ +/* $OpenBSD: pfkeyv2_convert.c,v 1.21 2004/08/10 16:17:05 ho Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@keromytis.org) * @@ -399,6 +399,13 @@ export_lifetime(void **p, struct tdb *tdb, int type) sadb_lifetime->sadb_lifetime_addtime = tdb->tdb_established; sadb_lifetime->sadb_lifetime_usetime = tdb->tdb_first_use; break; + + case PFKEYV2_LIFETIME_LASTUSE: + sadb_lifetime->sadb_lifetime_allocations = 0; + sadb_lifetime->sadb_lifetime_bytes = 0; + sadb_lifetime->sadb_lifetime_addtime = 0; + sadb_lifetime->sadb_lifetime_usetime = tdb->tdb_last_used; + break; } *p += sizeof(struct sadb_lifetime); |