diff options
author | 2006-12-15 09:31:20 +0000 | |
---|---|---|
committer | 2006-12-15 09:31:20 +0000 | |
commit | 939828e6283078f50fbaef0c24b60724df5c119d (patch) | |
tree | 8f702278262050ff08f22b9a9f3142848bfd2141 | |
parent | adjust the Directory request by sending the repository on a new line too. (diff) | |
download | wireguard-openbsd-939828e6283078f50fbaef0c24b60724df5c119d.tar.xz wireguard-openbsd-939828e6283078f50fbaef0c24b60724df5c119d.zip |
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 |