Browse Source

[efi] Reset multicast filter list when setting SNP receive filters

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>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
471fdfab79
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/efi/snpnet.c

+ 1
- 1
src/drivers/net/efi/snpnet.c View File

335
 		    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
335
 		    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
336
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS |
336
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS |
337
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST );
337
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST );
338
-	if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, FALSE,
338
+	if ( ( efirc = snp->snp->ReceiveFilters ( snp->snp, filters, 0, TRUE,
339
 						  0, NULL ) ) != 0 ) {
339
 						  0, NULL ) ) != 0 ) {
340
 		rc = -EEFI ( efirc );
340
 		rc = -EEFI ( efirc );
341
 		DBGC ( snp, "SNP %s could not set receive filters: %s\n",
341
 		DBGC ( snp, "SNP %s could not set receive filters: %s\n",

Loading…
Cancel
Save