diff options
author | 2006-03-25 22:41:41 +0000 | |
---|---|---|
committer | 2006-03-25 22:41:41 +0000 | |
commit | c4acdf64453f4af90bb07bf72a8beeebce2a3632 (patch) | |
tree | 49370bcebe0760903075593a00be3ed433881b80 /sys/netinet/ipsec_input.c | |
parent | regen (diff) | |
download | wireguard-openbsd-c4acdf64453f4af90bb07bf72a8beeebce2a3632.tar.xz wireguard-openbsd-c4acdf64453f4af90bb07bf72a8beeebce2a3632.zip |
allow bpf(4) to ignore packets based on their direction (inbound or
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 84292f88471..2617482c6b2 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.78 2006/03/04 22:40:16 brad Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.79 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 @@ -566,7 +566,8 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff, hdr.spi = tdbp->tdb_spi; hdr.flags = m->m_flags & (M_AUTH|M_CONF|M_AUTH_AH); - bpf_mtap_hdr(bpfif->if_bpf, (char *)&hdr, ENC_HDRLEN, m); + bpf_mtap_hdr(bpfif->if_bpf, (char *)&hdr, ENC_HDRLEN, m, + BPF_DIRECTION_IN); } #endif |