352 |
static void dhcp_handle_ack(struct dhcp_state *state) |
static void dhcp_handle_ack(struct dhcp_state *state) |
353 |
{ |
{ |
354 |
u8_t *option_ptr; |
u8_t *option_ptr; |
|
state->offered_t0_lease; |
|
|
state->offered_t1_renew; |
|
|
state->offered_t2_rebind; |
|
355 |
state->offered_sn_mask.addr = 0; |
state->offered_sn_mask.addr = 0; |
356 |
state->offered_gw_addr.addr = 0; |
state->offered_gw_addr.addr = 0; |
357 |
state->offered_bc_addr.addr = 0; |
state->offered_bc_addr.addr = 0; |
1276 |
{ |
{ |
1277 |
struct dhcp_state *state = NULL; |
struct dhcp_state *state = NULL; |
1278 |
struct dhcp_state *list_state = client_list; |
struct dhcp_state *list_state = client_list; |
|
err_t result = ERR_OK; |
|
1279 |
|
|
1280 |
DEBUGF(DHCP_DEBUG, ("dhcp_find_client()")); |
DEBUGF(DHCP_DEBUG, ("dhcp_find_client()")); |
1281 |
while ((state == NULL) && (list_state != NULL)) |
while ((state == NULL) && (list_state != NULL)) |
1302 |
} |
} |
1303 |
} |
} |
1304 |
return state; |
return state; |
|
} |
|
1305 |
|
} |