/[lwip]/lwip/src/core/dhcp.c
ViewVC logotype

Diff of /lwip/src/core/dhcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by likewise, Tue Apr 15 12:37:06 2003 UTC revision 1.28 by likewise, Thu May 1 08:00:41 2003 UTC
# Line 442  static void dhcp_handle_ack(struct netif Line 442  static void dhcp_handle_ack(struct netif
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? */

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26