diff --git a/src/common/network/dhcp.c b/src/common/network/dhcp.c index a7a604e..5bcd2b3 100644 --- a/src/common/network/dhcp.c +++ b/src/common/network/dhcp.c @@ -16,6 +16,7 @@ const char hostname[] = "ml402"; const char vendor[] = "Jayfield Inc."; static uint32_t xid = 0; +static uint8_t offeredIdAddress[4] = {0, 0, 0, 0}; // ------------------------------------------------------------------------- // Testing @@ -88,6 +89,7 @@ void DHCP_request_send(packet_t *pPacket, uint8_t dhcp_msg_type, uint8_t *mac_ad buffer[size++] = 42; buffer[size++] = 158; option_list_append(&options, DHCP_OPT_PARAM_REQ_LIST, buffer, size); + memcpy(pDHCP->yiaddr, offeredIdAddress, sizeof(offeredIdAddress)); } break;