/[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.23.2.5 by likewise, Tue May 20 09:15:37 2003 UTC revision 1.23.2.6 by likewise, Tue May 20 09:16:25 2003 UTC
# Line 1109  static void dhcp_recv(void *arg, struct Line 1109  static void dhcp_recv(void *arg, struct
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    }    }
# Line 1119  static void dhcp_recv(void *arg, struct Line 1118  static void dhcp_recv(void *arg, struct
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      }      }
# Line 1128  static void dhcp_recv(void *arg, struct Line 1126  static void dhcp_recv(void *arg, struct
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    }    }
# Line 1136  static void dhcp_recv(void *arg, struct Line 1133  static void dhcp_recv(void *arg, struct
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    }    }
# Line 1147  static void dhcp_recv(void *arg, struct Line 1143  static void dhcp_recv(void *arg, struct
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    }      }  
# Line 1191  static void dhcp_recv(void *arg, struct Line 1186  static void dhcp_recv(void *arg, struct
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    

Legend:
Removed from v.1.23.2.5  
changed lines
  Added in v.1.23.2.6

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