mirror of
https://github.com/ipxe/ipxe
synced 2026-02-08 13:52:13 +03:00
[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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user