summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ipsec_input.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-12-15 09:32:30 +0000
committerotto <otto@openbsd.org>2006-12-15 09:32:30 +0000
commit8a9ffae8c89358c8302be6566208917c45aed2df (patch)
tree19d3cf2a8616a068d4b611d0b2c6962bcf027da0 /sys/netinet/ipsec_input.c
parentmake pflog(4) count; ok hennig@ deraadt@ (diff)
downloadwireguard-openbsd-8a9ffae8c89358c8302be6566208917c45aed2df.tar.xz
wireguard-openbsd-8a9ffae8c89358c8302be6566208917c45aed2df.zip
make enc(4) count; ok markus@ henning@ deraadt@
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r--sys/netinet/ipsec_input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index abdafdc066d..a9a5bc6a630 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.81 2006/12/05 09:17:12 markus Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.82 2006/12/15 09:32:30 otto Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -571,6 +571,9 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
#if NBPFILTER > 0
bpfif = &encif[0].sc_if;
+ bpfif->if_ipackets++;
+ bpfif->if_ibytes += m->m_pkthdr.len;
+
if (bpfif->if_bpf) {
struct enchdr hdr;