diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2000-12-05 07:23:00 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2000-12-05 07:23:00 +0000 |
commit | 1b70408c56d6cab1d9a09c846a6eb18b764466b8 (patch) | |
tree | 7ea70fe200b80c9d22b8f86b2a17c613e95015b4 | |
parent | 4b24556b4a12441d9101af9bc9bcd8505c1e1911 (diff) |
Change bpfattach() link layer type to DLT_LOOP making pcap generated
bpf filters work on the tun interface. itojun@ approved.
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 8e0984d2974..26c759773de 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.29 2000/03/21 23:31:27 mickey Exp $ */ +/* $OpenBSD: if_tun.c,v 1.30 2000/12/05 07:22:59 hugh Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -144,7 +144,7 @@ tunattach(unused) ifp->if_obytes = 0; if_attach(ifp); #if NBPFILTER > 0 - bpfattach(&ifp->if_bpf, ifp, DLT_NULL, sizeof(u_int32_t)); + bpfattach(&ifp->if_bpf, ifp, DLT_LOOP, sizeof(u_int32_t)); #endif } } |