瀏覽代碼

[iscsi] Include DHCP server address in iBFT

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 年之前
父節點
當前提交
97c3f6e55a
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1
    0
      src/drivers/block/ibft.c
  2. 2
    0
      src/include/ipxe/settings.h

+ 1
- 0
src/drivers/block/ibft.c 查看文件

@@ -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 查看文件

@@ -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

Loading…
取消
儲存