summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-10-16device: Add a getter for powered propertyTomasz Bursztyka1-0/+5
2012-10-16technology: Use the right method to enable or disableTomasz Bursztyka1-22/+27
If rfkill driven, use rfkill soft block/unblock. If not, request the device to be enabled or disabled.
2012-10-16technology: Change enabled to a boolean and refactor accordinglyTomasz Bursztyka1-25/+20
2012-10-16technology: Refactor and split functions setting enabled stateTomasz Bursztyka1-25/+29
2012-10-16technology: Refactor rfkill event handling according to soft/hard blockTomasz Bursztyka1-22/+35
No need to proceed with softblocked if technology is already hardblocked. Apply offlinemode and persistant state according to softblocked state. (saner logic and helped to cleanup code from style point of view too)
2012-10-16technology: Add and handle a marker for softblock statusTomasz Bursztyka1-5/+11
2012-10-16technology: Add a marker to know if a technology is rfkill drivenTomasz Bursztyka1-3/+10
Useful for coming patches: enabling/disabling technologies will be done differently whether technology is rfkill driven or not: - if rfkill driven -> enabled will rely on rfkill states - if not -> enabled will rely on driver/devices states
2012-10-16technology: Refactor how a technology is enabled or disabledTomasz Bursztyka1-38/+28
Refactor how a device list is enabled/disabled: this will be useful for coming patches. Simplify also the code, and remove useless gotos.
2012-10-16wispr: Keep track of proxy callback timeoutPatrik Flykt1-2/+10
Keep track of the zero-second no proxy callback timeout and remove it when freeing up the WISPr context.
2012-10-16rfkill: Return the error when write() failsTomasz Bursztyka1-3/+6
2012-10-15iptables: Ignore module loading errorJukka Rissanen1-6/+7
In iptables 1.4.9 module loading gives an error even if the module is built in. Ignore the loading errors because the missing iptables support is noticed when trying to get the iptables socket options.
2012-10-12nat: Memory leak when cleaning upJukka Rissanen1-0/+1
The nat struct was not freed when it is was removed from the hash.
2012-10-03dnsproxy: Do not overwrite protocol and channel in server structJukka Rissanen1-5/+26
We copied too much data into addrinfo struct which corrupted the protocol and channel fields. Fixes BMC#25726
2012-10-03technology: Do not expose a technology which is hard rfkilledTomasz Bursztyka1-4/+8
If hard rfkilled, a technology will not be exposed through DBus via GetTechnologies. If hard rfkill status changes, TechnologyAdded and TechnologyRemoved signals will be sent accordingly.
2012-10-03technology: Add helpers for (un)registering a technology in D-BusTomasz Bursztyka1-11/+34
2012-10-03technology: Do not apply Powered setting change if hardblock is onTomasz Bursztyka1-1/+7
2012-10-03technology: Simplify set_powered functionTomasz Bursztyka1-7/+3
2012-10-03technology: Link hard rfkill with actual device's stateTomasz Bursztyka1-8/+18
When hardblocking a technology, it should disable the devices which belongs to that technology. When un-hardblocking it should do the same but taking care about user setting (it will enable the devices if only enable_persistent is on).
2012-10-03technology: Handle harblock if all of them have identical typeTomasz Bursztyka1-0/+19
On some hardware, there exist two rfkill entities for the same type with a cascading issue: if one is soft blocked, the other one is hardblocked. But if the hardblock switch is set, all are hardblocked. This patch figures out that a technology is hardblocked only if all related rkill events get the same hardblock value.
2012-10-03technology: Handle rfkill hardblockTomasz Bursztyka1-12/+28
2012-10-03technology: Handle rfkill hash table in a saner wayTomasz Bursztyka1-6/+6
2012-10-03conf: Allow Counter and Notification interfaces in connman-polkit.confTomasz Bursztyka1-0/+2
2012-10-02session: If no policy plugin is selected use default configDaniel Wagner1-2/+12
2012-10-02session: Move the default config create part back to coreDaniel Wagner1-0/+21
2012-10-01error: EINPROGRESS error was not handledJukka Rissanen1-0/+1
2012-10-01inet: Cleanup rtnl callback data properlyJukka Rissanen1-7/+1
The inet_rtnl_cb_data struct allocated in __connman_inet_rtnl_talk() was not deallocated if we expected data from kernel.
2012-10-01ntp: Calculate transmit time from receive time and monotonic deltaPatrik Flykt1-6/+13
Calculate transmit time used in NTP as the reception time minus the delta of the monotonic receive and transmit times. When calculated this way, it does not matter if the time happens to be set to something else between the sending and receiving of the NTP packet. On sending the added monotonic time and the previous transmit time are saved at the same point in time. On reception the monotonic time is evaluated after the packet has been received by ConnMan. This is in contrast to the actual reception wall clock time which is added by the kernel. The difference between the reception times on a normal system is about 100µs, which is neglible.
2012-10-01technology: Update tethering properties when relevantTomasz Bursztyka1-6/+22
2012-10-01wispr: Properly handle Agent errorTomasz Bursztyka1-6/+8
2012-09-28wispr: Service does not need to be reference countedPatrik Flykt2-5/+1
2012-09-28wispr: Free wispr portal context struct instead of unreferencing itPatrik Flykt1-40/+9
The structure can now be directly freed, since the reference count is always one. As a result, remove wispr_portal_context_unref() function.
2012-09-28wispr: Remove service usage reset functionPatrik Flykt1-22/+2
Remove reset_service_usage() as it is now obsolete with the refcount always being equal to one.
2012-09-28wispr: Agent calls need not be referencedPatrik Flykt1-29/+2
There is no need to refcount while doing Agent API calls, since outstanding Agent API calls are removed when the service is disconnected. Also remove wispr_portal_context_ref() as it is no longer used.
2012-09-28wispr: Clean up reference countingPatrik Flykt1-22/+9
connman_wispr_portal_context is initialized with refcount set to one. Don't reference it an additional times while doing asynchronous calls if the calls can be cancelled. Unreference the structure when done.
2012-09-28log: Disable stack trace from command linePatrik Flykt3-8/+15
Add a '--nobacktrace' command line switch to let the system handle stack traces. The default is to let ConnMan handle them as before
2012-09-28ipconfig: Fix IPv6.Configuration parsingTomasz Bursztyka1-5/+3
PrefixLength is exposed as a byte in the API, but code was waiting for a string when setting a new value.
2012-09-27session: Apply policy on AllowedBearersDaniel Wagner1-3/+100
2012-09-27session: Apply policy on ConnnectionTypeDaniel Wagner1-2/+22
2012-09-27session: Enforce correct ConnectionType settingsDaniel Wagner1-2/+12
Up to now an empty or wrong ConnectionType was interpreted as 'any'. If the ConnectionType is either wrong ignore it. If no ConnectionType setting is passed in during creation of the session choose 'any'.
2012-09-27session: Support no match in AllowedBearersDaniel Wagner1-24/+25
Up to now an empty AllowedBearers was interpreted as match any. Let's make the match all explicit by expecting '*'. If an empty AllowedBearers is provided, we interpret this as no match. In this case the application will never get an online notifcation.
2012-09-27session: Use g_slist_free_full to free bearer listDaniel Wagner1-3/+2
2012-09-27session: Add bearer list cleanup functionDaniel Wagner1-12/+10
2012-09-27session: Remove unused functionsDaniel Wagner1-33/+0
Basic types are not used for the configuration anymore.
2012-09-27session: Get config from policy pluginDaniel Wagner1-51/+29
Let's ask the plugin for the default configuration. AllowedBearers and ConnectionType are not yet taken fromt the plugin. Instead the user configuration will be taken.
2012-09-27session: Allow plugin access to connman_session_allowed_bearers_anyDaniel Wagner1-3/+3
2012-09-27session: Move configuration bits to a public structDaniel Wagner1-51/+32
Instead of passing basic datatypes between the session core and the policy plugin, provide a complex data structure which holds the session configuration.
2012-09-27session: Move bearer_info to session.hDaniel Wagner1-46/+40
Rename bearer_info to connman_session_bearer. Use also 'bearer' as local variable instead of 'info' to avoid confusion with session_info.
2012-09-27session: Use session pointer instead of string idDaniel Wagner1-32/+4
Instead of passing in some string to identify we can use the connman_session pointer. This allows us to keep the way sessions are identfied away from the core, e.g. using the D-Bus owner id or something else.
2012-09-27session: Move struct connman_session to session.hDaniel Wagner1-1/+2
2012-09-27session: Update session when policy plugin is added or removedDaniel Wagner1-0/+47