diff options
author | David Greenman <dg@FreeBSD.org> | 1994-11-30 12:08:23 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1994-11-30 12:08:23 +0000 |
commit | 89384ace857ec39b646f0c7f182d52b85c8ac6a9 (patch) | |
tree | 99c0b62d753b54246adad3df4e4cfe73a084395b /sys/i386/pci/if_de.c | |
parent | 1ca6f46d56a6107dd6bd1f25e1411953233da8a6 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=4875
Diffstat (limited to 'sys/i386/pci/if_de.c')
-rw-r--r-- | sys/i386/pci/if_de.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/pci/if_de.c b/sys/i386/pci/if_de.c index c2be0754e4a4..d8c20385da9b 100644 --- a/sys/i386/pci/if_de.c +++ b/sys/i386/pci/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; |