summaryrefslogtreecommitdiffstats
path: root/sys/dev/de
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-11-30 12:08:23 +0000
committerdg <dg@FreeBSD.org>1994-11-30 12:08:23 +0000
commit74d1e69716506e21b0833b416213a2cea603a074 (patch)
tree99c0b62d753b54246adad3df4e4cfe73a084395b /sys/dev/de
parentbe31fe948fd9e87951ce0b06efd3d64f3400c10c (diff)
downloadFreeBSD-src-74d1e69716506e21b0833b416213a2cea603a074.zip
FreeBSD-src-74d1e69716506e21b0833b416213a2cea603a074.tar.gz
Fix bug I introduced that broke BPF support. Caused by a byte order problem
in an if () expression. Problem fixed by removing the test for ETHERTYPE_* before passing packet to higher layers.
Diffstat (limited to 'sys/dev/de')
-rw-r--r--sys/dev/de/if_de.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index c2be075..d8c2038 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.7 1994/11/22 09:47:31 davidg Exp $
+ * $Id: if_de.c,v 1.8 1994/11/24 14:29:34 davidg Exp $
*
*/
@@ -397,8 +397,6 @@ tulip_rx_intr(
#if NBPFILTER > 0
if (sc->tulip_bpf != NULL) {
bpf_tap(sc->tulip_bpf, bufaddr, total_len);
- if (eh.ether_type != ETHERTYPE_IP && eh.ether_type != ETHERTYPE_ARP)
- goto next;
if ((eh.ether_dhost[0] & 1) == 0 &&
!TULIP_ADDREQUAL(eh.ether_dhost, sc->tulip_ac.ac_enaddr))
goto next;
OpenPOWER on IntegriCloud