Skip to content

Commit bd12214

Browse files
author
Juha Heiskanen
committed
DHCP client address request update
Added check for new address request start if we have already active request. Change-Id: Iefa9211ae41d7a57f95b87f360fe897a095c2def
1 parent 74dc531 commit bd12214

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/DHCPv6_client/dhcpv6_client_service.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,13 @@ int dhcp_client_get_global_address(int8_t interface, uint8_t dhcp_addr[static 16
210210
//Already Created to same interface
211211
return -1;
212212
}
213+
} else if (libdhcpv6_nonTemporal_entry_get_by_prefix(interface, prefix)) {
214+
//Already Created for same prefix
215+
tr_debug("Address REQ started already");
216+
return -1;
213217
}
214218

219+
tr_debug("GEN new Dhcpv6 client %u", dhcp_client.libDhcp_instance);
215220
srv_data_ptr = libdhcvp6_nontemporalAddress_server_data_allocate(interface, dhcp_client.libDhcp_instance, mac64, link_type, prefix, dhcp_addr);
216221

217222
if (!srv_data_ptr) {

0 commit comments

Comments
 (0)