summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/hpc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-08 15:07:11 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-08 15:07:11 +0000
commit0e740b268138112a2628b1599c83b41b6b7d0ece (patch)
tree6332597cf49c577ce535f629b507aef8e7036181 /sys/arch/sgi/hpc
parentd8a61616aabea5aa3280a19e3202d266f90e3914 (diff)
Fix logic in the driver preventing it to receive broadcast frames
before configuring an address. Make dhclient(8) work on sq(4). Problem reported by Frank Scheiner, diff from miod@
Diffstat (limited to 'sys/arch/sgi/hpc')
-rw-r--r--sys/arch/sgi/hpc/if_sq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/hpc/if_sq.c b/sys/arch/sgi/hpc/if_sq.c
index b2a34badc5c..65716393dce 100644
--- a/sys/arch/sgi/hpc/if_sq.c
+++ b/sys/arch/sgi/hpc/if_sq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sq.c,v 1.28 2017/01/22 10:17:37 dlg Exp $ */
+/* $OpenBSD: if_sq.c,v 1.29 2017/03/08 15:07:10 mpi Exp $ */
/* $NetBSD: if_sq.c,v 1.42 2011/07/01 18:53:47 dyoung Exp $ */
/*
@@ -580,7 +580,7 @@ sq_set_filter(struct sq_softc *sc)
/*
* Unless otherwise specified, always accept broadcast frames.
*/
- if ((sc->sc_rxcmd & ~RXCMD_REC_MASK) == RXCMD_REC_NONE)
+ if ((sc->sc_rxcmd & RXCMD_REC_MASK) == RXCMD_REC_NONE)
sc->sc_rxcmd |= RXCMD_REC_BROAD;
}