From 0e740b268138112a2628b1599c83b41b6b7d0ece Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 8 Mar 2017 15:07:11 +0000 Subject: 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@ --- sys/arch/sgi/hpc/if_sq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi/hpc') 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; } -- cgit v1.2.3