diff options
| author | 2006-03-25 22:41:41 +0000 | |
|---|---|---|
| committer | 2006-03-25 22:41:41 +0000 | |
| commit | c4acdf64453f4af90bb07bf72a8beeebce2a3632 (patch) | |
| tree | 49370bcebe0760903075593a00be3ed433881b80 /sys/net/if_loop.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/net/if_loop.c')
| -rw-r--r-- | sys/net/if_loop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 59c4f3d4922..84cf8471e84 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.39 2006/03/04 22:40:15 brad Exp $ */ +/* $OpenBSD: if_loop.c,v 1.40 2006/03/25 22:41:47 djm Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -248,7 +248,8 @@ looutput(ifp, m, dst, rt) * packets for local use. But don't dup them to bpf. */ if (ifp->if_bpf && (ifp->if_flags & IFF_LOOPBACK)) - bpf_mtap_af(ifp->if_bpf, htonl(dst->sa_family), m); + bpf_mtap_af(ifp->if_bpf, htonl(dst->sa_family), m, + BPF_DIRECTION_OUT); #endif m->m_pkthdr.rcvif = ifp; |
