Hi,

This patchset exposes DHCP statistics such as expiration time and dhcp state
to allow the system as a whole to make sleep and wake decisions based on these
timestamps. As currently implemented, the dhcp renewal state machine happens in
a relatively isolated state machine that only informs the application of
changes in ipconfig.

With these statistics published, more intelligent decisions can be made about
when to hold of sleeping and when to wake to renew the DHCP lease and avoid
disrupting the connection. These statistics will also be useful for users
attempting to diagnose dhcp issues on their networks.

Please review this and let me know what you guys think!

Thanks,
Andrew LeCain

Andrew LeCain (3):
  gdhcp: adding state changed callback
  gdhcp: Adding lease statistics and getter
  dhcp: Adding subdictionary to ipconfig describing dhcp statistics

 gdhcp/client.c |  154 ++++++++++++++++++++++++++++++++++++++++++++------------
 gdhcp/gdhcp.h  |    6 +++
 src/connman.h  |    6 +++
 src/dhcp.c     |  100 ++++++++++++++++++++++++++++++++++++
 src/ipconfig.c |   23 +++++++++
 src/service.c  |    6 +++
 6 files changed, 264 insertions(+), 31 deletions(-)

-- 
1.7.9.5

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to