summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-02-13ippool: Fix collision detection altorithmDaniel Wagner1-63/+169
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).
2012-02-13ippool: Fix 16 bit block iteratorDaniel Wagner1-3/+2
2012-02-13ippool: Add prefixlen argument to __connman_ippool_new/deladdr()Daniel Wagner3-8/+12
2012-02-13nat: Fix typo in iptables ruleDaniel Wagner1-1/+1
2012-02-13bridge: Fix __connman_bridge_enable() arguments orderingDaniel Wagner2-4/+4
2012-02-13iptables: Mask address when parsing ip/prefixlenDaniel Wagner1-0/+1
Netfilter likes to have the address properly masked.
2012-02-13iptables: Fix rule insertion in a builtin chainTomasz Bursztyka1-1/+4
2012-02-13tethering: Fix start of IP poolDaniel Wagner1-1/+1
The pool should start at 2 not 1 since this collides with the gateway address.
2012-02-13resolver: Domain name was not setJukka Rissanen1-1/+1
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
2012-02-13nat: Move nat code into a seperate fileDaniel Wagner4-110/+253
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
2012-02-13tethering: Use notifier to update default interface.Daniel Wagner3-9/+25
2012-02-13bridge: Move bridge code into a seperate fileDaniel Wagner3-109/+154
The bridge handling code will reused by session.c.
2012-02-13iptables: Parse also netmask for src/dst addressesDaniel Wagner1-9/+38
2012-02-04timeserver: Remove connman_timeserver_driver frameworkAlok Barsode1-47/+0
2012-02-04timeserver: Remove connman_timeserver_[append/remove]Alok Barsode2-99/+0
We do not need to these anymore as we directly use the timeservers from service.
2012-02-04timeserver: Check condition to restart timeserversAlok Barsode1-0/+4
if we are using service timeservers, then do not restart ntp if the user modifies system timeservers.
2012-02-04timeserver: Use service timeserver, if any, before system timeserversAlok Barsode2-0/+22
2012-02-04ntp: Add timeserver switch logicAlok Barsode2-2/+31
Add a timeout mechanism to switch to next system timeserver if the current one does not respond or is a bogus one.
2012-02-04Add __connman_timerserver_sync() to resolve a list of timeserversAlok Barsode4-13/+142
__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.
2012-02-04ntp: NTP Query a Timeserver server IPAlok Barsode2-77/+58
__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.
2012-02-04service: Free service->timeserversAlok Barsode1-0/+1
2012-02-04dhcp: modify connman_dhcp to add multiple timeserversAlok Barsode1-15/+32
2012-02-04timeserver: Add functions to store/restore timeservers via the clock APIAlok Barsode3-24/+159
2012-02-04manager: Remove RequestScan D-Bus method callPatrik Flykt1-35/+0
2012-02-04device: Notify technology when a scan has started or stoppedPatrik Flykt1-0/+4
2012-02-04technology: Implement Technology Scan and scan start/stop functionalityPatrik Flykt2-11/+102
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.
2012-02-04device: Return success if scan succeeded for at least one devicePatrik Flykt1-5/+11
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.
2012-02-04device: Return -EOPNOTSUPP if the device does not support scanningPatrik Flykt1-1/+1
2012-02-03iptables: add capability to check for an existing ruleTomasz Bursztyka1-5/+45
2012-02-03iptables: refactor how an existing rule is foundTomasz Bursztyka1-13/+40
2012-02-01ipconfig: Add/del IP address from IP poolDaniel Wagner1-0/+6
2012-02-01tethering: Add notification callback implementationGuillaume Zajac1-2/+18
2012-02-01ippool: Add API to notify when IP is externally assignedDaniel Wagner3-7/+90
2012-02-01tethering: Use IP pool API with DHCPGuillaume Zajac1-14/+29
2012-02-01tethering: Use IP pool API with private networkGuillaume Zajac1-12/+18
2012-02-01ippool: Add IP pool layerDaniel Wagner3-0/+315
This is based on Guillaume Zajac intial IP pool patches.
2012-02-01session: Send SessionMode property change messageDaniel Wagner1-1/+7
2012-02-01technology: Fix technology refcountingAlok Barsode1-2/+6
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.
2012-02-01technology: Create a list for technology orphaned rfkill switchesAlok Barsode1-20/+45
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.
2012-02-01technology: Create a list for technology orphaned devicesAlok Barsode1-2/+43
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.
2012-01-27provider: Don't remove a provider on errorPatrik Flykt1-7/+1
When a provider indicates error, set the corresponding service error but don't remove the provider.
2012-01-27provider: Load providers at provider driver registration timePatrik Flykt1-0/+78
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.
2012-01-27provider: Handle connman_provider_load() in provider_create()Patrik Flykt1-2/+2
Load provider data in provider_create() if provider_register() returns success.
2012-01-27provider: Factor out service creationPatrik Flykt1-11/+25
Factor out the creation of a service when given a provider.
2012-01-27provider: Factor out keyfile loadingPatrik Flykt1-9/+17
Factor out keyfile loading from connman_provider_load() into a fuction of its own.
2012-01-27provider: Don't set provider->name when creating provider structPatrik Flykt1-3/+0
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.
2012-01-27storage: Function to fetch all saved providersPatrik Flykt2-0/+50
Implement __connman_storage_get_providers() to fetch all stored providers.
2012-01-25iptables: Avoid NULL pointer dereference in table_cleanup()Daniel Mack1-0/+3
2012-01-24technology: Remove 'State' property from TechnologyPatrik Flykt1-58/+3
2012-01-24technology: Add 'Connected' Technology propertyPatrik Flykt3-0/+26
Set Technology property 'Connected' to true if at least one service for the Technology is connected; false otherwise.