diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-12-15 09:32:31 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-12-15 09:32:31 +0000 |
commit | e8f8d5703435cd511ff27bd9afe6afb84d81f950 (patch) | |
tree | 7c82d0ffcf8f1447862973f1666e37fad65efdaa /sys/netinet/ip_esp.c | |
parent | cf2214d8fd6eedfe91160bfa89a4657b0179126d (diff) |
make enc(4) count; ok markus@ henning@ deraadt@
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r-- | sys/netinet/ip_esp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index 51d60a12b60..a348c53960f 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.99 2006/09/21 11:10:52 otto Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.100 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 @@ -740,6 +740,9 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, #if NBPFILTER > 0 struct ifnet *ifn = &(encif[0].sc_if); + ifn->if_opackets++; + ifn->if_obytes += m->m_pkthdr.len; + if (ifn->if_bpf) { struct enchdr hdr; |