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(pbuf = %p) from DHCP server %u.%u.%u.%u port %u\n", p, |
1103 |
|
(u8_t)(ntohl(addr->addr) >> 24 & 0xff), |
1104 |
|
(u8_t)(ntohl(addr->addr) >> 16 & 0xff), |
1105 |
|
(u8_t)(ntohl(addr->addr) >> 8 & 0xff), |
1106 |
|
(u8_t)(ntohl(addr->addr) & 0xff), port)); |
1107 |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->len = %u\n", p->len)); |
DEBUGF(DHCP_DEBUG | DBG_TRACE, ("pbuf->len = %u\n", p->len)); |
1108 |
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)); |
1109 |
|
/* prevent warning */ |
1110 |
|
if (pcb || addr || port); |
1111 |
dhcp->p = p; |
dhcp->p = p; |
1112 |
if (reply_msg->op != DHCP_BOOTREPLY) { |
if (reply_msg->op != DHCP_BOOTREPLY) { |
1113 |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 1, ("not a DHCP reply message, but type %u\n", reply_msg->op)); |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 1, ("not a DHCP reply message, but type %u\n", reply_msg->op)); |