Hi Guna,
On Mon, Mar 09, 2020 at 04:18:24AM -0000, guna.aravind(a)gmail.com wrote:
/**********tethering.c(lease_added)******************************/
DBG("ip address for lease added:%s",ip_addr);
struct tether_client * teth_cli = NULL;
if(true == g_hash_table_lookup_extended(clients_table, mac_addr, NULL, &teth_cli))
{
DBG("modifying ip address for %s mac address from hash table",mac_addr);
g_free(teth_cli->ip);
teth_cli->ip = g_strdup(ip_addr);
}
else
{
DBG("no entry present for %s mac address",mac_addr);
teth_cli = tether_client_create(ip_addr);
if (teth_cli)
{
char * mac;
mac = g_strdup(mac_addr);
g_hash_table_insert(clients_table, mac, teth_cli);
}
}
/*********************************************************************************/
I don't see this code in our repository. Are you sure you are looking
at the code from
git://git.kernel.org/pub/scm/network/connman/connman.git
?
Thanks,
Daniel