From 24436414aab60dc84348ec54f23b324b4ae862a3 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 25 Mar 2006 22:41:49 +0000 Subject: allow bpf(4) to ignore packets based on their direction (inbound or outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@ --- sys/netinet/ip_esp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/netinet/ip_esp.c') diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index bf3e4aab7ad..40643e1ffb4 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.96 2005/12/20 13:36:28 markus Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.97 2006/03/25 22:41:48 djm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -752,7 +752,8 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, if (esph) hdr.flags |= M_AUTH; - bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, ENC_HDRLEN, m); + bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, ENC_HDRLEN, m, + BPF_DIRECTION_OUT); } #endif -- cgit v1.2.3