On Sat, 2016-01-02 at 15:06 +0000, Bertrand Jacquin wrote:
I've been looking on how to extend DHCP request to query additional
fields like option 101 (Timezone) via the config file, but it looks to
be somewhat hardcoded in the source code. In there any opportunies to
extend this ? I'm traveling quiet a bit in regions with different
timezone and as a lazy man I would like to avoid manually changing my
It's indeed hardcoded at the moment. This sounds like a useful option
would someone like to implement it.
To me it looks like handling the timezone option in src/dhcp.c with
dhcp_initialize() and lease_available_cb(), and then using
src/timezone.c, __connman_timezone_change(), to set it. Perhaps not
everybody wants a timezone change, so an main.conf option is needed for
this. But this after only 2 mins of inspecting, please take it with a
grain of salt.