diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-12-02 12:39:16 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-12-02 12:39:16 +0000 |
commit | 50a2dcd14345dac2a5e224a856d00dd13be4f8aa (patch) | |
tree | 29d42c79760caaadb988f184f76009f5dac7c86c /sys/netinet/ip_ipsp.c | |
parent | 953b5678cbcdd918247f379b24743bc3f759891c (diff) |
Allow to build kernel without IPSEC or INET6 defines.
OK mpi@ mvs@
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 4da6d060096..c5c228e1828 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.259 2021/12/01 22:34:31 bluhm Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.260 2021/12/02 12:39:15 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -661,7 +661,9 @@ tdb_timeout(void *v) if (tdb->tdb_flags & TDBF_TIMER) { /* If it's an "invalid" TDB do a silent expiration. */ if (!(tdb->tdb_flags & TDBF_INVALID)) { +#ifdef IPSEC ipsecstat_inc(ipsec_exctdb); +#endif /* IPSEC */ pfkeyv2_expire(tdb, SADB_EXT_LIFETIME_HARD); } tdb_delete(tdb); @@ -680,7 +682,9 @@ tdb_firstuse(void *v) if (tdb->tdb_flags & TDBF_SOFT_FIRSTUSE) { /* If the TDB hasn't been used, don't renew it. */ if (tdb->tdb_first_use != 0) { +#ifdef IPSEC ipsecstat_inc(ipsec_exctdb); +#endif /* IPSEC */ pfkeyv2_expire(tdb, SADB_EXT_LIFETIME_HARD); } tdb_delete(tdb); |