Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
With one argument, len(sys.argv) is equal to 2.
|
|
len(sys.argv) gives the number of arguments including the
name of the command.
Fixes BMC#25722
|
|
Fixes BMC#25721
|
|
Decrease the refcount with one on error.
|
|
Update the ipdevice interface name if it is changed by udev.
|
|
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).
|
|
|
|
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.
|
|
When the callback has been called, the whole structure might be
freed. Thus don't call the debug function tied to the structure.
|
|
In some cases we did not destroy the bridge and ip pool.
|
|
Commit 4fe07df removed an error message about missing bridge functionality.
Return it back.
|
|
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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
Reorder and group the settings, first the read only values
and then the ones which can be changed.
|
|
The RoamingPolicy setting which should be set by the platform integrator
and not by the application developper is moved the configuration plugin.
|
|
Remove this setting from the D-Bus API and move to the configuration
plugin.
|
|
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().
|
|
The EmergencyCall setting which should be set by the platform integrator
and not by the application developer is moved the configuration plugin.
|
|
|
|
This setting is implicitly already available through AutoConnect.
Having yet another way to express this doesn't make it work any better.
|
|
The Priority setting which should be set by the platform integrator
and not by the application developer is moved the configuration plugin.
|
|
Remove this setting from the D-Bus API and move it to the
configuration plugin.
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
Update to the new D-Bus API and the simplified connection
algorithms (state).
|
|
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().
|
|
The interface was not properly set down and thus the services
were not removed.
Fixes BMC#25659
|
|
The variable "signature" used in error is not defined and "args" is now
a struct instead of a string.
|
|
Fixes BMC#25660
|
|
We should not use the Host variable from provider as it can
contain a non-resolved address.
Fixes BMC#25658
|