summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2019-05-11 17:16:22 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2019-05-11 17:16:22 +0000
commit791e2ef98d171583680f94fbe513c3338c60e7dd (patch)
tree676e3f9aba4e170deafe6ea3851b1fce8a71efad /sys/netinet
parent74a3930c42e5a66668964e2a200db77c24f7f762 (diff)
unbreak the build without IPSEC.
ok claudio@ deraadt@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipsp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index e2d39bab37a..c27cabc82d3 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.233 2018/10/22 15:32:19 cheloha Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.234 2019/05/11 17:16:21 benno Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -708,8 +708,10 @@ puttdb(struct tdb *tdbp)
tdbsrc[hashval] = tdbp;
tdb_count++;
+#ifdef IPSEC
if ((tdbp->tdb_flags & (TDBF_INVALID|TDBF_TUNNELING)) == TDBF_TUNNELING)
ipsecstat_inc(ipsec_tunnels);
+#endif /* IPSEC */
ipsec_last_added = time_uptime;
}
@@ -777,11 +779,13 @@ tdb_unlink(struct tdb *tdbp)
tdbp->tdb_snext = NULL;
tdb_count--;
+#ifdef IPSEC
if ((tdbp->tdb_flags & (TDBF_INVALID|TDBF_TUNNELING)) ==
TDBF_TUNNELING) {
ipsecstat_dec(ipsec_tunnels);
ipsecstat_inc(ipsec_prevtunnels);
}
+#endif /* IPSEC */
}
void