442 |
/* (y)our internet address */ |
/* (y)our internet address */ |
443 |
ip_addr_set(&dhcp->offered_ip_addr, &dhcp->msg_in->yiaddr); |
ip_addr_set(&dhcp->offered_ip_addr, &dhcp->msg_in->yiaddr); |
444 |
|
|
445 |
|
/** |
446 |
|
* Patch #1308 |
447 |
|
* TODO: we must check if the file field is not overloaded by DHCP options! |
448 |
|
*/ |
449 |
|
#if 0 |
450 |
|
/* boot server address */ |
451 |
|
ip_addr_set(&dhcp->offered_si_addr, &dhcp->msg_in->siaddr); |
452 |
|
/* boot file name */ |
453 |
|
if (dhcp->msg_in->file[0]) { |
454 |
|
dhcp->boot_file_name = mem_malloc(strlen(dhcp->msg_in->file) + 1); |
455 |
|
strcpy(dhcp->boot_file_name, dhcp->msg_in->file); |
456 |
|
} |
457 |
|
#endif |
458 |
|
|
459 |
/* subnet mask */ |
/* subnet mask */ |
460 |
option_ptr = dhcp_get_option_ptr(dhcp, DHCP_OPTION_SUBNET_MASK); |
option_ptr = dhcp_get_option_ptr(dhcp, DHCP_OPTION_SUBNET_MASK); |
461 |
/* subnet mask given? */ |
/* subnet mask given? */ |