From d09290161e33574d8f0fa900ebe739214d17fe1a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 17 Jul 2009 22:48:31 +0100 Subject: [netdevice] Make ll_broadcast per-netdevice rather than per-ll_protocol IPoIB has a link-layer broadcast address that varies according to the partition key. We currently go through several contortions to pretend that the link-layer address is a fixed constant; by making the broadcast address a property of the network device rather than the link-layer protocol it will be possible to simplify IPoIB's broadcast handling. --- src/interface/efi/efi_snp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/interface/efi') diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c index 4bdb78066..f96984fa3 100644 --- a/src/interface/efi/efi_snp.c +++ b/src/interface/efi/efi_snp.c @@ -129,8 +129,7 @@ static void efi_snp_set_mode ( struct efi_snp_device *snpdev ) { EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST ); assert ( ll_addr_len <= sizeof ( mode->CurrentAddress ) ); memcpy ( &mode->CurrentAddress, netdev->ll_addr, ll_addr_len ); - memcpy ( &mode->BroadcastAddress, netdev->ll_protocol->ll_broadcast, - ll_addr_len ); + memcpy ( &mode->BroadcastAddress, netdev->ll_broadcast, ll_addr_len ); memcpy ( &mode->PermanentAddress, netdev->ll_addr, ll_addr_len ); mode->IfType = ntohs ( netdev->ll_protocol->ll_proto ); mode->MacAddressChangeable = TRUE; -- cgit v1.2.3-55-g7522