- put delay and begin
git-svn-id: http://moon:8086/svn/mips@217 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+1
-2
@@ -330,7 +330,6 @@ int main()
|
||||
}
|
||||
|
||||
#ifdef WITH_DHCP_CLIENT
|
||||
sleep(1000);
|
||||
{
|
||||
ARP *pARP;
|
||||
IPV4 *pIPV4;
|
||||
@@ -343,11 +342,11 @@ int main()
|
||||
printf("---------------------------------------------------------------\n");
|
||||
printf("- Send DHCP Discover ------------------------------------------\n");
|
||||
printf("---------------------------------------------------------------\n");
|
||||
sleep(3000);
|
||||
Eth_pkt_create(&packet, TYPE_PROTO_IP, eth_myself, eth_bcst);
|
||||
DHCP_request_send(&packet, DHCP_MSG_DHCPDISCOVER, eth_myself, ip_zero, ip_bcast, NULL);
|
||||
PrintBuffer8((uint8_t*)packet.pkt_buf, 16, packet.size);
|
||||
Eth_pkt_send(&packet);
|
||||
sleep(3000);
|
||||
}
|
||||
dhcp_state = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user