summaryrefslogtreecommitdiff
path: root/sys/net/if_pflog.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2014-07-09 11:03:05 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2014-07-09 11:03:05 +0000
commit0983a6f99c7a5491ed754153a0af32ad11100b68 (patch)
tree06f2bacd833b22e084513b15db79649b915b96e1 /sys/net/if_pflog.c
parent42c4f45bad9861fff06c921b7e9f014874c6ea92 (diff)
tedu bpf_mtap_pflog().
now that it is a trivial wrapper around the extended bpf_mtap_hdr, we can use bpf_mtap_hdr directly. added benefit: pflog_bpfcopy doesn't need to be exported any more and can stay private to if_pflog.c ok benno bluhm reyk
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r--sys/net/if_pflog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index f0d18ef9ff7..104f27ebfa7 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.59 2014/06/25 16:21:20 mikeb Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.60 2014/07/09 11:03:04 henning Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -85,6 +85,7 @@ int pflogioctl(struct ifnet *, u_long, caddr_t);
void pflogstart(struct ifnet *);
int pflog_clone_create(struct if_clone *, int);
int pflog_clone_destroy(struct ifnet *);
+void pflog_bpfcopy(const void *, void *, size_t);
LIST_HEAD(, pflog_softc) pflogif_list;
struct if_clone pflog_cloner =
@@ -298,7 +299,8 @@ pflog_packet(struct pf_pdesc *pd, u_int8_t reason, struct pf_rule *rm,
ifn->if_opackets++;
ifn->if_obytes += pd->m->m_pkthdr.len;
- bpf_mtap_pflog(ifn->if_bpf, (caddr_t)&hdr, pd->m);
+ bpf_mtap_hdr(ifn->if_bpf, (caddr_t)&hdr, PFLOG_HDRLEN, pd->m,
+ BPF_DIRECTION_OUT, pflog_bpfcopy);
#endif
return (0);