1089 |
|
|
1090 |
|
|
1091 |
/** |
/** |
1092 |
* If an incoming DHCP message is in response to use, then trigger the state machine |
* If an incoming DHCP message is in response to us, then trigger the state machine |
1093 |
*/ |
*/ |
1094 |
static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *addr, u16_t port) |
static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *addr, u16_t port) |
1095 |
{ |
{ |
1099 |
u8_t *options_ptr; |
u8_t *options_ptr; |
1100 |
u8_t msg_type; |
u8_t msg_type; |
1101 |
u8_t i; |
u8_t i; |
1102 |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("dhcp_recv()\n")); |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 3, ("dhcp_recv() from DHCP server %u.%u.%u.%u port %u\n", port)); |
1103 |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->len = %u\n", p->len)); |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->len = %u\n", p->len)); |
1104 |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->tot_len = %u\n", p->tot_len)); |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->tot_len = %u\n", p->tot_len)); |
1105 |
dhcp->p = p; |
dhcp->p = p; |