mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08: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 */
|
/* (y)our internet address */
|
||||||
ip_addr_set(&dhcp->offered_ip_addr, &dhcp->msg_in->yiaddr);
|
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 */
|
/* subnet mask */
|
||||||
option_ptr = dhcp_get_option_ptr(dhcp, DHCP_OPTION_SUBNET_MASK);
|
option_ptr = dhcp_get_option_ptr(dhcp, DHCP_OPTION_SUBNET_MASK);
|
||||||
/* subnet mask given? */
|
/* subnet mask given? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user