Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. IP Accounting for WiFi Clients ([email protected])
2. [tethering.c][lease_added]why to check whether MAC is already present in
the hash table
([email protected])
----------------------------------------------------------------------
Date: Mon, 09 Mar 2020 03:59:12 -0000
From: [email protected]
Subject: IP Accounting for WiFi Clients
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Currently i don't see the IP accounting feature is conman for WiFi Clients.
I like to contribute the implementation for IP Accounting for WiFi Clients. Can
somebody provide the procedure to contribute.
------------------------------
Date: Mon, 09 Mar 2020 04:18:24 -0000
From: [email protected]
Subject: [tethering.c][lease_added]why to check whether MAC is already
present in the hash table
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
I like to understand why to check whether MAC is already present or not in the
hash table.
My understanding is once the MAC is authenticated and MAC is added to the Hash
table, then the DHCP server start leasing the IP to the client, after
successful leasing lease_added method i called. If my understanding is correct,
what is the use of the adding MAC address check and not present condition. if
the execution reaches lease_added method, that means MAC address is already
inserted in the hash table.
Can some one help here to understand the logic
/**********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);
}
}
/*********************************************************************************/
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 53, Issue 9
**************************************