-prepared for dhcp request
git-svn-id: http://moon:8086/svn/mips@226 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user