summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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.
2012-01-24network: Add caller information to ref/unref debug prints.Jukka Rissanen1-6/+9
2012-01-24device: Add caller information to ref/unref debug prints.Jukka Rissanen1-3/+9
2012-01-24provider: Add caller information to ref/unref debug prints.Jukka Rissanen1-4/+9
2012-01-24ipconfig: Add caller information to ref/unref debug prints.Jukka Rissanen2-6/+20
2012-01-24service: Add caller information to ref/unref debug prints.Jukka Rissanen1-4/+9
This helps to pin point the exact line/function who is taking the reference.
2012-01-24technology: Add object path to TechnologyAdded signalDaniel Wagner1-0/+2
As it is described in the manager-api.txt document.
2012-01-24dnsproxy: Check that cache is valid before accessing it.Jukka Rissanen1-4/+12
The cache can become invalid by just disconnecting a service. In that case we must not access the cache hash.
2012-01-24network: Avoid double network disconnect.Jukka Rissanen1-1/+2
2012-01-24network: Refactor set_connected() function.Jukka Rissanen1-116/+139
The set_connected() is split to two parts, the disconnect part is in set_disconnected() function.
2012-01-20provider: Remove provider from the hash properlyJukka Rissanen1-1/+1
We must not just do connman_provider_unref(provider) as that will leave the provider to the provider_hash and we will get free memory access error. We can just remove the provider from the hash and that will unref the provider automagically.
2012-01-20provider: VPN service can be nullJukka Rissanen1-2/+4
2012-01-20technology: Fix g_dbus_emit_signal argumentAlok Barsode1-1/+1
Fixes BMC#24636
2012-01-20technology: Remove unused notifier functionsPatrik Flykt1-6/+0
2012-01-20notifier: Remove unused technology notifiersPatrik Flykt2-185/+0
Since there only user of __connman_notifier_is_enabled() and __connman_notifier_is_register() was removed with the technology method calls in Manager, remove the now unnecessary support functions.
2012-01-20technology: Add 'Powered' Technology propertyPatrik Flykt2-156/+192
Remove __connman_technology_enable/disable functions but reuse their contents for 'Powered' property implementation. As a result move code around as the new functions are now static.
2012-01-20manager: Remove EnableTechnology and DisableTechnologyPatrik Flykt1-74/+0
Remove EnableTechnology and DisableTechnology D-Bus method calls from Manager API.
2012-01-20ipconfig: Possible to have double unrefJukka Rissanen1-1/+1
Because we do not check that origin pointer is not this ipconfig, it is possible that we might try to unref the ipconfig one time too many. Something like this was seen in the log file: connmand[19208]: src/ipconfig.c:enable_ipv6() connmand[19208]: src/ipconfig.c:__connman_ipconfig_unref() ipconfig 0x47502f0 refcount 0 connmand[19208]: src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x47502f0 connmand[19208]: src/ipconfig.c:disable_ipv6() connmand[19208]: src/ipconfig.c:__connman_ipconfig_unref() ipconfig 0x47502f0 refcount -1
2012-01-20proxy: Service was saved but not referencedJukka Rissanen1-1/+2
2012-01-20connection: Only take service ref when saving serviceJukka Rissanen1-9/+5
The fix b68795352dd5a9ac41eab31c765ade0c88329a6e was only partly working. We must only take the ref when we are saving stuff to hash (no need to take ref if we are only modifying value in the hash). This patch reverts the commit b68795
2012-01-20service: Properly ref/unref the networkJukka Rissanen1-2/+4
We only took reference to network when the network was created by service. This needs to be changed as the network might disappear while service is using network pointer. So now we take network ref when necessary and release it when service is removed or if underlaying network is changed.
2012-01-20service: Refactor the service unref functionJukka Rissanen3-36/+23
2012-01-20service: Add ref counting debugJukka Rissanen1-2/+2
2012-01-20service: Cleanup of already removed functionalityJukka Rissanen1-5/+1
The commit 87318d768c9bf6842ec4dc74f03220ee8b6a9c72 removed code from service but left the network_created flag intact. This patch removes the useless flag.
2012-01-20dhcpv6: Do not start release if we are not connectedJukka Rissanen1-0/+10
We do not need to start the RELEASE procedure if we have not yet contacted the server.
2012-01-20network: Do not start IPv6 autoconfiguration if already pendingJukka Rissanen1-0/+10
2012-01-20dhcpv6: Prevent user from starting DHCPv6 multiple timesJukka Rissanen1-0/+16
We must make sure that user cannot start DHCPv6 many times for a given network.
2012-01-20network: Add more debug printsJukka Rissanen1-1/+3
2012-01-20network: Verify we are connected before starting DHCPv6Jukka Rissanen1-0/+9
2012-01-20dhcpv6: Add more debug printsJukka Rissanen1-1/+8
2012-01-20dhcpv6: Do not wait answer to RELEASE messageJukka Rissanen2-17/+9
We do not want to wait the answer to release message that was sent to the DHCPv6 server because the reply from server might take some time and we must continue the network disconnect procedure. So we just inform the server that we are done with the addresses but ignore server reply as there is nothing to be done anyway after sending the release.
2012-01-16technology: Register a technology is there's a driver for itAlok Barsode1-22/+25
Connman should not handle technologies whose drivers are not compiled in. This patch also avoids connman controlling the rfkill switches for technologies not compiled in. Fixes BMC#24549.
2012-01-16technology: Assign driver to technology at creation timeAlok Barsode1-15/+2
No need to assign driver to technolog during driver registration.