Bladeren bron

[iscsi] Include DHCP server address in iBFT

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 jaren geleden
bovenliggende
commit
97c3f6e55a
2 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 1
    0
      src/drivers/block/ibft.c
  2. 2
    0
      src/include/ipxe/settings.h

+ 1
- 0
src/drivers/block/ibft.c Bestand weergeven

@@ -260,6 +260,7 @@ static int ibft_fill_nic ( struct ibft_nic *nic,
260 260
 	ibft_set_ipaddr_setting ( NULL, &nic->dns[0], &dns_setting,
261 261
 				  ( sizeof ( nic->dns ) /
262 262
 				    sizeof ( nic->dns[0] ) ) );
263
+	ibft_set_ipaddr_setting ( parent, &nic->dhcp, &dhcp_server_setting, 1 );
263 264
 	DBG ( "iBFT NIC DNS = %s", ibft_ipaddr ( &nic->dns[0] ) );
264 265
 	DBG ( ", %s\n", ibft_ipaddr ( &nic->dns[1] ) );
265 266
 	if ( ( rc = ibft_set_string_setting ( NULL, strings, &nic->hostname,

+ 2
- 0
src/include/ipxe/settings.h Bestand weergeven

@@ -462,6 +462,8 @@ extern const struct setting
462 462
 asset_setting __setting ( SETTING_HOST_EXTRA, asset );
463 463
 extern const struct setting
464 464
 board_serial_setting __setting ( SETTING_HOST_EXTRA, board-serial );
465
+extern const struct setting dhcp_server_setting __setting ( SETTING_MISC,
466
+							    dhcp-server );
465 467
 
466 468
 /**
467 469
  * Initialise a settings block

Laden…
Annuleren
Opslaan