Age | Commit message (Collapse) | Author | Files | Lines |
|
Track only private address ranges in a list. If the first IP is
assigned for a range check if a pool collides. For this we need
to check all entries in the list if the new IP is the range of an
allocated pool.
This can be made faster with the right data structure and
algorithm (e.g. segment overlap detection algorithms).
|
|
|
|
|
|
|
|
|
|
Netfilter likes to have the address properly masked.
|
|
|
|
The pool should start at 2 not 1 since this collides with
the gateway address.
|
|
When service sets the domain name, the server is NULL.
We must allow this as otherwise dnsproxy will not be able
to append domain name into DNS queries.
Fixes BMC#24712
|
|
Instead of natting all traffic, nat.c will restrict the masquerading
on given network/mask.
The nat handling code will be reused by session.c
|
|
|
|
The bridge handling code will reused by session.c.
|
|
|
|
|
|
We do not need to these anymore as we directly use the timeservers from
service.
|
|
if we are using service timeservers, then do not restart
ntp if the user modifies system timeservers.
|
|
|
|
Add a timeout mechanism to switch to next system timeserver
if the current one does not respond or is a bogus one.
|
|
__connman_timerserver_sync() resolves system timeservers one at a time
and queries the resolved server or the 1st of the resolved servers for
time correction. If the resolution fails it resolves the next one.
__connman_timerserver_sync_next() resolves the next system timeserver.
__connman_timerserver_stop() stops this query.If the user modifies the
system timeserver list, we restart the ntp process.
|
|
__connman_ntp_start() takes a NTP server IP, and starts querying it for
time correction.If a timeserver responds, we continue to query it every
"Poll Interval" seconds for time corrections.
__connman_ntp_stop() stops the polling process.
|
|
|
|
|
|
|
|
|
|
|
|
When Technology Scan D-Bus method call is called, add caller to a scan
list and start a scan for the service type. When a device reports scan
completed, check whether it was the last device scanning and reply to
the callers accordingly.
Also check for scanning status when removing devices and technology
objects.
|
|
Return success on requesting device scan if at least one of the
devices reported success. If scanning was unsuccessful for all
devices, return the error from the last one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is based on Guillaume Zajac intial IP pool patches.
|
|
|
|
technology_add_device and technology_add_rfkill should increment
technology refcount. The refcount denotes the total number of devices
and rfkill switches in the technology. Similarly technology_remove_device
and technology_remove_rfkill should decrement technology refcount.
Once the refcount is 0, which means that there are no devices and rfkill
switches in this technology, technology should be freed.
|
|
If we get a rfkill switch before the technology driver was registered we
would lose track of it as we currently ignoed it. Adding a global rfkill
hash table which can keep a track of technologyless switches untill the
driver for them is loaded. If the driver is not compiled in the switches
will remain in the hash but will not be handled by connman.
|
|
If we get a device before the technology driver was registered we
would lose track of it as we ignoed it. Adding a device list which
can keep a track of technologyless devices untill the driver for
them is loaded. If the driver is not compiled in the devices will
remain in the list.
|
|
When a provider indicates error, set the corresponding
service error but don't remove the provider.
|
|
Load all saved providers that have the same type as the provider
driver being registered. While looking through the storage dir
for directory entries starting with 'provider_', the respective
settings file needs to be opened in order to check the type.
Since the settings file is already opened, load all other settings
as well with the help of the previously factored out functions.
|
|
Load provider data in provider_create() if provider_register()
returns success.
|
|
Factor out the creation of a service when given a provider.
|
|
Factor out keyfile loading from connman_provider_load() into
a fuction of its own.
|
|
Don't unnecessarily set provider->name to the value of the provider
identifier in connman_provider_get() since it's going to be reset
immediately to the supplied provider name.
|
|
Implement __connman_storage_get_providers() to fetch all stored
providers.
|
|
|
|
|
|
Set Technology property 'Connected' to true if at least one service
for the Technology is connected; false otherwise.
|