diff options
author | 2006-12-15 09:32:30 +0000 | |
---|---|---|
committer | 2006-12-15 09:32:30 +0000 | |
commit | 8a9ffae8c89358c8302be6566208917c45aed2df (patch) | |
tree | 19d3cf2a8616a068d4b611d0b2c6962bcf027da0 /sys/netinet/ipsec_input.c | |
parent | make pflog(4) count; ok hennig@ deraadt@ (diff) | |
download | wireguard-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.c | 5 |
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; |