]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Reset multicast filter list when setting SNP receive filters
authorMichael Brown <mcb30@ipxe.org>
Tue, 5 Aug 2014 17:00:17 +0000 (18:00 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 5 Aug 2014 17:00:17 +0000 (18:00 +0100)
According to the UEFI specification, the MCastFilter parameter (which
we currently pass as NULL, along with a zero MCastFilterCnt) is
optional only if ResetMCastFilter is true.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/snpnet.c

index 61b66c628009ba478badf1762e7282b7471dfe7d..9d3f97b9c467b5368fa715f3671db03aa674d7c6 100644 (file)
@@ -335,7 +335,7 @@ static int snpnet_open ( struct net_device *netdev ) {
                    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
                    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS |
                    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST );
-       if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, FALSE,
+       if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, TRUE,
                                                  0, NULL ) ) != 0 ) {
                rc = -EEFI ( efirc );
                DBGC ( snp, "SNP %s could not set receive filters: %s\n",