Ver código fonte

[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 anos atrás
pai
commit
471fdfab79
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/drivers/net/efi/snpnet.c

+ 1
- 1
src/drivers/net/efi/snpnet.c Ver arquivo

@@ -335,7 +335,7 @@ static int snpnet_open ( struct net_device *netdev ) {
335 335
 		    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
336 336
 		    EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS |
337 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 339
 						  0, NULL ) ) != 0 ) {
340 340
 		rc = -EEFI ( efirc );
341 341
 		DBGC ( snp, "SNP %s could not set receive filters: %s\n",

Carregando…
Cancelar
Salvar