diff options
author | 2000-12-05 07:22:59 +0000 | |
---|---|---|
committer | 2000-12-05 07:22:59 +0000 | |
commit | 2f345f0972c9e9b19e640b246f1dba708f67fdd7 (patch) | |
tree | ed4ff740472a778a3b303588ceedbf1f1710b6ee | |
parent | David Maziere's ssh-keyscan, ok niels@ (diff) | |
download | wireguard-openbsd-2f345f0972c9e9b19e640b246f1dba708f67fdd7.tar.xz wireguard-openbsd-2f345f0972c9e9b19e640b246f1dba708f67fdd7.zip |
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 } } |