Minor code simplification (don't store received pbuf, change conditional code to assert where applicable), check pbuf length before testing for valid reply

This commit is contained in:
goldsimon
2009-10-19 20:06:01 +00:00
parent a37e62b7d0
commit 67411c4299
3 changed files with 35 additions and 33 deletions

View File

@@ -32,12 +32,10 @@ struct dhcp
u32_t xid;
/** our connection to the DHCP server */
struct udp_pcb *pcb;
/** (first) pbuf of incoming msg */
struct pbuf *p;
/** incoming msg */
struct dhcp_msg *msg_in;
/** incoming msg options */
struct dhcp_msg *options_in;
void *options_in;
/** ingoing msg options length */
u16_t options_in_len;