/[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.52 by likewise, Thu Nov 4 19:19:29 2004 UTC revision 1.53 by likewise, Thu Nov 25 11:10:53 2004 UTC
# Line 679  static err_t dhcp_decline(struct netif * Line 679  static err_t dhcp_decline(struct netif *
679      pbuf_realloc(dhcp->p_out, sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + dhcp->options_out_len);      pbuf_realloc(dhcp->p_out, sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + dhcp->options_out_len);
680    
681      udp_bind(dhcp->pcb, IP_ADDR_ANY, DHCP_CLIENT_PORT);      udp_bind(dhcp->pcb, IP_ADDR_ANY, DHCP_CLIENT_PORT);
682      udp_connect(dhcp->pcb, &dhcp->server_ip_addr, DHCP_SERVER_PORT);      /* @todo: should we really connect here? we are performing sendto() */
683      udp_send(dhcp->pcb, dhcp->p_out);      udp_connect(dhcp->pcb, IP_ADDR_ANY, DHCP_SERVER_PORT);
684        /* per section 4.4.4, broadcast DECLINE messages */
685        udp_sendto(dhcp->pcb, dhcp->p_out, IP_ADDR_BROADCAST, DHCP_SERVER_PORT);
686      dhcp_delete_request(netif);      dhcp_delete_request(netif);
687      LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_decline: BACKING OFF\n"));      LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_decline: BACKING OFF\n"));
688    } else {    } else {

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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