Skip to content

Commit

Permalink
[iscsi] Include DHCP server address in iBFT
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 29, 2016
1 parent f8e1678 commit 97c3f6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/block/ibft.c
Expand Up @@ -260,6 +260,7 @@ static int ibft_fill_nic ( struct ibft_nic *nic,
ibft_set_ipaddr_setting ( NULL, &nic->dns[0], &dns_setting,
( sizeof ( nic->dns ) /
sizeof ( nic->dns[0] ) ) );
ibft_set_ipaddr_setting ( parent, &nic->dhcp, &dhcp_server_setting, 1 );
DBG ( "iBFT NIC DNS = %s", ibft_ipaddr ( &nic->dns[0] ) );
DBG ( ", %s\n", ibft_ipaddr ( &nic->dns[1] ) );
if ( ( rc = ibft_set_string_setting ( NULL, strings, &nic->hostname,
Expand Down
2 changes: 2 additions & 0 deletions src/include/ipxe/settings.h
Expand Up @@ -462,6 +462,8 @@ extern const struct setting
asset_setting __setting ( SETTING_HOST_EXTRA, asset );
extern const struct setting
board_serial_setting __setting ( SETTING_HOST_EXTRA, board-serial );
extern const struct setting dhcp_server_setting __setting ( SETTING_MISC,
dhcp-server );

/**
* Initialise a settings block
Expand Down

0 comments on commit 97c3f6e

Please sign in to comment.