From 97da5feb0cbe59981c7793cb75cfdce8056ad305 Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Wed, 23 Apr 2014 10:50:19 +0000 Subject: Don't attempt to deal with link types supported by no drivers in the tree. ok henning@ --- sys/net/bpf.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'sys/net/bpf.c') 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); } -- cgit v1.2.3