summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-09-14client: Manager API command line client supportTudor Marcu2-0/+297
Support connecting/disconnecting services, list and set ConnMan properties. 'get_message()' is used to send any method request to ConnMan, and it returns the reply that several functions use.
2012-09-14client: Technology API command line client supportCeara Chewning2-0/+226
Support Technology API functionality such as scanning, parsing and setting and receiving technology properties. Using 'match_tech_name()' the command line utility can verify if a given technology exists on the system.
2012-09-14client: Service API command line client supportTudor Marcu2-0/+547
Support Service API message D-Bus message parsing. Functions are provided for configuring properties, iterating through D-Bus messages and extracting properties in a useful manner.
2012-09-14build: Add session-policy plugin to default configurationDaniel Wagner1-0/+1
2012-09-14session: Fix configuration plugin buildDaniel Wagner3-9/+18
Instead of allow the user configuring which plugin should build and used via issuing 'configure --with-configplugin=foo' add explicit enable flags 'configure --enable-session-policy'. Also with this patch, the name is changed from session-default to session-policy.
2012-09-13test: Disable tethering test script takes exactly one argumentPatrik Flykt1-1/+1
With one argument, len(sys.argv) is equal to 2.
2012-09-13test: Correctly check number of test script argumentsPatrik Flykt1-1/+1
len(sys.argv) gives the number of arguments including the name of the command. Fixes BMC#25722
2012-09-13technology: Returns the right error when setting tetheringTomasz Bursztyka1-2/+6
Fixes BMC#25721
2012-09-13tethering: Reset the tethering refcount on errorPatrik Flykt1-1/+6
Decrease the refcount with one on error.
2012-09-13ipconfig: Catch interface name changesJukka Rissanen1-1/+12
Update the ipdevice interface name if it is changed by udev.
2012-09-13agent: Fixes refcounting issueTomasz Bursztyka1-12/+4
Since service is referenced already in the message queue, there is no need to reference it also in the callback data: this might lead to an over refcount issue if the queue message is canceled before receiving any answer to it. (callback's data refcount is still there).
2012-09-11proxy: Set lookup to NULL if the tokens did not matchPatrik Flykt1-0/+2
2012-09-11wispr: Add backpointer to wispr portal structurePatrik Flykt1-0/+10
When calling free_connman_wispr_portal_context(), the context is freed. Add a backpointer to the wispr portal context in order to clear the context from the wispr_portal struct.
2012-09-11gweb: Don't use debug functionality after possible freePatrik Flykt1-4/+1
When the callback has been called, the whole structure might be freed. Thus don't call the debug function tied to the structure.
2012-09-07tethering: Fix error path in __connman_tethering_set_enabled()Artem Bityutskiy1-0/+3
In some cases we did not destroy the bridge and ip pool.
2012-09-07tethering: Re-add error message about missing bridge functionalityArtem Bityutskiy1-1/+3
Commit 4fe07df removed an error message about missing bridge functionality. Return it back.
2012-09-07tethering: Fix bridge module loading problemArtem Bityutskiy1-6/+12
Connman tries to check if bridging is supported by the kernel by checking whether "/proc/sys/net/bridge" is present. If the bridge is a kernel module which is not already loaded, then tethering cannot be enabled. Instead of checking for the file we invoke the "get bridge version" socket ioctl and the kernel will handle module loading issues - if the bridge module is not loaded, it will first load it, and then check the version.
2012-09-07technology: Fix memory leak as the tethering strings were not freedJukka Rissanen1-0/+4
2012-09-07config: Call g_clear_error to prevent memory leakDanny Jeongseok Seo1-0/+1
2012-09-04test: set-timeservers was missing from makefileJukka Rissanen1-1/+1
2012-09-04agent: Always clean up and unref on agent shutdownPatrik Flykt1-12/+9
2012-09-04agent: Cancel agent requestsPatrik Flykt2-0/+11
Clean up any queued Agent API messages when the agent disappears or the service is disconnected. Send cancel to the agent on D-Bus timeout.
2012-09-04agent: Implement Agent API Cancel() method callPatrik Flykt2-0/+56
Clean up the queue and cancel the current message at the agent, if any. Split out the actual cancel message sending as it will be used separately from the rest of the code.
2012-09-04agent: Use the Agent queueing functions when sending requestsPatrik Flykt1-81/+52
2012-09-04agent: Implement Agent API message queueingPatrik Flykt1-0/+114
Add functions for queuing Agent API messages and sending the first one when there is no message processed by the agent. Handle D-Bus pending call replies and simplify the D-Bus reply processing by handing the message to the callback function.
2012-09-04Use g_slist_prepend() where appropriatePatrik Flykt12-16/+16
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
2012-08-30session: Do not track disconnect reasonDaniel Wagner1-15/+8
All session stay in free ride mode all the time. We still have to know if we have called connect on a service. Therefore we need to distiguish between reason CONNECT and FREE_RIDE.
2012-08-30session: Reorder D-Bus documentationDaniel Wagner1-40/+41
Reorder and group the settings, first the read only values and then the ones which can be changed.
2012-08-30session: Move RoamingPolicy to configuration pluginDaniel Wagner2-42/+19
The RoamingPolicy setting which should be set by the platform integrator and not by the application developper is moved the configuration plugin.
2012-08-30session: Remove RoamingPolicy documetationDaniel Wagner1-21/+0
Remove this setting from the D-Bus API and move to the configuration plugin.
2012-08-30session: Move EmergencyCall to configuration pluginDaniel Wagner2-99/+29
Instead fallback using the configuration plugin for selecting the emergency application. Now we don't have to update all other sessions which makes the whole code logic more straight forward. If a session is marked as an emergency call and this application calls Connect()/Disconnect() it will succedd and block all other sessions when they try to call Connect() or Disconnect().
2012-08-30session: Remove EmergencyCall documentationDaniel Wagner1-28/+0
The EmergencyCall setting which should be set by the platform integrator and not by the application developer is moved the configuration plugin.
2012-08-30session: Remove StayConnected implementationDaniel Wagner1-21/+2
2012-08-30session: Remove StayConnected documentationDaniel Wagner1-7/+0
This setting is implicitly already available through AutoConnect. Having yet another way to express this doesn't make it work any better.
2012-08-30session: Move Priority to configuration pluginDaniel Wagner2-20/+22
The Priority setting which should be set by the platform integrator and not by the application developer is moved the configuration plugin.
2012-08-30session: Remove Priority documentationDaniel Wagner1-30/+0
Remove this setting from the D-Bus API and move it to the configuration plugin.
2012-08-30session: Add configuration pluginDaniel Wagner6-1/+234
2012-08-30session: Remove SessionMarker implementationDaniel Wagner1-12/+0
2012-08-30session: Remove SessionMarker documentationDaniel Wagner1-9/+0
SO_MARK can only be set if the application has the CAP_NET_ADMIN capability. We don't want to give that to all application for good reasons and thus this approach won't work. Also touching all applications to get this feature working is not a good idea. We are going to use a cgroup controller to set SO_MARK and therefore we don't need it in the Session API.
2012-08-30session: Remove PeriodicConnect implementationDaniel Wagner1-51/+3
2012-08-30session: Remove PeriodicConnect documentationDaniel Wagner1-27/+0
The idea was to let ConnMan know and optimize the connection scheduling. Doing this per Session is a bit over-engineered. The only use cases that have come up so far was for things like an email client checking for new message. Past experience showed that this kind of interface lead easily to live locks. If there is need for such a feature, doing it on a per technology would make more sense. For the time beeing it will be removed. Later it could still be added to the Technology API. If an application still wants to have a connection on regular basis it can call the Session Connnect() method. ConnMan is still able to defer any connection request.
2012-08-30session: Update ConnectionType documentationDaniel Wagner1-0/+3
The ConnectionType configuration option will be moved to the config plugin when we know how the application can be uniquely identified in a persistent way.
2012-08-30session: Remove IdleTimeout implementationDaniel Wagner1-19/+0
2012-08-30session: Move IdleTimeout to Technology APIDaniel Wagner2-9/+8
Having an IdleTimeout per Session is not really reasonable. It is hard to define the right behavoir if the timeouts differ per Session. Doing this per technology is easier to understand and also makes sense when no Session is used. IdleTimeout is only documented here, it's not yet implemented.
2012-08-30session: Update overview docDaniel Wagner1-82/+19
Update to the new D-Bus API and the simplified connection algorithms (state).
2012-08-30service: Do not report error twiceAlok Barsode1-3/+0
In request_input_cb(), __connman_service_indicate_error() unconditionally reports an error via agent after determing the service state. The error reporting and user connectable state will be properly handled by service_indicate_state().
2012-08-29inet: Properly remove IPv4 address and set interface downPatrik Flykt1-3/+5
The interface was not properly set down and thus the services were not removed. Fixes BMC#25659
2012-08-27gdbus: Fix compilation error if macro "error" is definedJaganath Kanakkassery1-2/+2
The variable "signature" used in error is not defined and "args" is now a struct instead of a string.
2012-08-24pptp: Fix PPTP option typoPatrik Flykt1-1/+1
Fixes BMC#25660
2012-08-23pptp: Get VPN gateway resolved IP addressJukka Rissanen1-1/+1
We should not use the Host variable from provider as it can contain a non-resolved address. Fixes BMC#25658