diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2014-04-23 10:50:19 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2014-04-23 10:50:19 +0000 |
commit | 97da5feb0cbe59981c7793cb75cfdce8056ad305 (patch) | |
tree | fbeb173c00a9fdfeb63321ee17aeb89d1de2612c /sys | |
parent | e82787755e27c6b8105a6ab69d012fb4bf3791c6 (diff) |
Don't attempt to deal with link types supported by no drivers in the
tree. ok henning@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bpf.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 9305f1afc3a..df40c12ff25 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.92 2014/04/14 09:06:42 mpi Exp $ */ +/* $OpenBSD: bpf.c,v 1.93 2014/04/23 10:50:18 jca Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -152,12 +152,6 @@ bpf_movein(struct uio *uio, u_int linktype, struct mbuf **mp, hlen = ETHER_HDR_LEN; break; - case DLT_FDDI: - sockp->sa_family = AF_UNSPEC; - /* XXX 4(FORMAC)+6(dst)+6(src)+3(LLC)+5(SNAP) */ - hlen = 24; - break; - case DLT_IEEE802_11: case DLT_IEEE802_11_RADIO: sockp->sa_family = AF_UNSPEC; @@ -170,16 +164,6 @@ bpf_movein(struct uio *uio, u_int linktype, struct mbuf **mp, hlen = 0; break; - case DLT_ATM_RFC1483: - /* - * An ATM driver requires 4-byte ATM pseudo header. - * Though it isn't standard, vpi:vci needs to be - * specified anyway. - */ - sockp->sa_family = AF_UNSPEC; - hlen = 12; /* XXX 4(ATM_PH) + 3(LLC) + 5(SNAP) */ - break; - default: return (EIO); } |