diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-12-15 09:31:21 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-12-15 09:31:21 +0000 |
commit | cf2214d8fd6eedfe91160bfa89a4657b0179126d (patch) | |
tree | 489c2f20b65237578d084781dcdefa301ed8ce61 | |
parent | f2476ae2c515018cc1162475bd5845219ad38ea4 (diff) |
make pflog(4) count; ok hennig@ deraadt@
-rw-r--r-- | sys/net/if_pflog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c index a6dbb2c6881..561a2f6f4b2 100644 --- a/sys/net/if_pflog.c +++ b/sys/net/if_pflog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflog.c,v 1.21 2006/11/01 23:39:34 mcbride Exp $ */ +/* $OpenBSD: if_pflog.c,v 1.22 2006/12/15 09:31:20 otto Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -265,6 +265,8 @@ pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir, } #endif /* INET */ + ifn->if_opackets++; + ifn->if_obytes += m->m_pkthdr.len; bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, PFLOG_HDRLEN, m, BPF_DIRECTION_OUT); #endif |