Re: [PATCH] service: Qualify call to '__connman_timeserver_sync' with default check.
Marcel Holtmann <[email protected]>
| Newsgroups | dev.linux.lists.connman |
|---|---|
| Message-ID | <[email protected]> |
Hi Grant, > This qualifies the call to '__connman_timeserver_sync' in > '__connman_service_ipconfig_indicate_state' with a check against > 'connman_service_is_default'. > > In a multi-technology and -service environment, there may be a senior, > default service that is providing the network service for time-of-day > synchronization. > > Without the 'connman_service_is_default' qualification, in a > multi-technology and -service environment, as junior services > transitions to the 'ready' state, each of those service usurp the > senior, default service and start trying to provide time-of-day > synchronization which is NOT what is desired. > > So, in a configuration with Ethernet, Wi-Fi, and Cellular in which > they are preferred in that order and in which Ethernet is the default > and becomes 'ready' first, Ethernet will provide the network service > for time-of-day synchronization. Then, once Wi-Fi becomes 'ready', it > will usurp time-of-day synchronization from Ethernet. Similarly, when > Cellular becomes 'ready' it will usurp time-of-day synchronization > from Wi-Fi. In all of those cases, time-of-day synchronization should > have remained with Ethernet until such time as it was/is no longer the > senior, default service. > --- > src/service.c | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) patch has been applied. Regards Marcel