1109 |
if (reply_msg->op != DHCP_BOOTREPLY) { |
if (reply_msg->op != DHCP_BOOTREPLY) { |
1110 |
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)); |
1111 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1112 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1113 |
return; |
return; |
1114 |
} |
} |
1118 |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("netif->hwaddr[%u]==%02x != reply_msg->chaddr[%u]==%02x\n", |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("netif->hwaddr[%u]==%02x != reply_msg->chaddr[%u]==%02x\n", |
1119 |
i, netif->hwaddr[i], i, reply_msg->chaddr[i])); |
i, netif->hwaddr[i], i, reply_msg->chaddr[i])); |
1120 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1121 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1122 |
return; |
return; |
1123 |
} |
} |
1126 |
if (ntohl(reply_msg->xid) != dhcp->xid) { |
if (ntohl(reply_msg->xid) != dhcp->xid) { |
1127 |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("transaction id mismatch\n")); |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("transaction id mismatch\n")); |
1128 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1129 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1130 |
return; |
return; |
1131 |
} |
} |
1133 |
if (dhcp_unfold_reply(dhcp) != ERR_OK) { |
if (dhcp_unfold_reply(dhcp) != ERR_OK) { |
1134 |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("problem unfolding DHCP message - too short on memory?\n")); |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 2, ("problem unfolding DHCP message - too short on memory?\n")); |
1135 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1136 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1137 |
return; |
return; |
1138 |
} |
} |
1143 |
if (options_ptr == NULL) { |
if (options_ptr == NULL) { |
1144 |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 1, ("DHCP_OPTION_MESSAGE_TYPE option not found\n")); |
DEBUGF(DHCP_DEBUG | DBG_TRACE | 1, ("DHCP_OPTION_MESSAGE_TYPE option not found\n")); |
1145 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1146 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1147 |
return; |
return; |
1148 |
} |
} |
1186 |
dhcp_handle_offer(netif); |
dhcp_handle_offer(netif); |
1187 |
} |
} |
1188 |
pbuf_free(p); |
pbuf_free(p); |
|
dhcp->reply_msg = NULL; |
|
1189 |
dhcp->p = NULL; |
dhcp->p = NULL; |
1190 |
} |
} |
1191 |
|
|