summaryrefslogtreecommitdiff
path: root/libdhcp/dhcp.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 15:21:09 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-23 15:21:09 -0600
commite7378b9f9b122e05baebce387fe9c3844c0736b6 (patch)
treece921a21811cb4ded792f61f2d933cf4e8f87a96 /libdhcp/dhcp.c
parent9940877f4bb44bc69fecf7fb5afcf3cbab90f088 (diff)
wip
Diffstat (limited to 'libdhcp/dhcp.c')
-rw-r--r--libdhcp/dhcp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libdhcp/dhcp.c b/libdhcp/dhcp.c
index 77f4b61..e638496 100644
--- a/libdhcp/dhcp.c
+++ b/libdhcp/dhcp.c
@@ -595,18 +595,11 @@ static int8_t dhcp_check_leasedIP(implements_net_udpsock *sock) {
uint8_t tmp;
int32_t ret;
- /* WIZchip RCR value changed for ARP Timeout count control */
- tmp = getRCR();
- setRCR(0x03);
-
/* IP conflict detection : ARP request - ARP reply */
/* Broadcasting ARP Request for check the IP conflict using UDP sendto() function */
ret = sendto(sock, "CHECK_IP_CONFLICT", 17, global_lease.addr, 5000);
- /* RCR value restore */
- setRCR(tmp);
-
- if(ret == SOCKERR_TIMEOUT) {
+ if (ret == SOCKERR_TIMEOUT) {
/* UDP send Timeout occurred : allocated IP address is unique, DHCP Success */
debugf("\r\n> Check leased IP - OK");