mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-03 21:32:08 +00:00
Patch #1308. Still disabled, as it needs to make sure no file field is not overloaded.
This commit is contained in:
parent
a0eb47d561
commit
6c907ce8d1
@ -442,6 +442,20 @@ static void dhcp_handle_ack(struct netif *netif)
|
||||
/* (y)our internet address */
|
||||
ip_addr_set(&dhcp->offered_ip_addr, &dhcp->msg_in->yiaddr);
|
||||
|
||||
/**
|
||||
* Patch #1308
|
||||
* TODO: we must check if the file field is not overloaded by DHCP options!
|
||||
*/
|
||||
#if 0
|
||||
/* boot server address */
|
||||
ip_addr_set(&dhcp->offered_si_addr, &dhcp->msg_in->siaddr);
|
||||
/* boot file name */
|
||||
if (dhcp->msg_in->file[0]) {
|
||||
dhcp->boot_file_name = mem_malloc(strlen(dhcp->msg_in->file) + 1);
|
||||
strcpy(dhcp->boot_file_name, dhcp->msg_in->file);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* subnet mask */
|
||||
option_ptr = dhcp_get_option_ptr(dhcp, DHCP_OPTION_SUBNET_MASK);
|
||||
/* subnet mask given? */
|
||||
|
Loading…
Reference in New Issue
Block a user