Age | Commit message (Collapse) | Author | Files | Lines |
|
When timeservers are set, recreate timeserver polling list only if the
service is the the default one.
|
|
|
|
This is related to fix d7d8f8bdb7c1ddae098893e10608fcb42034a9ff
We did not set the state to idle after disconnecting the
associating service.
Fixes BMC#25981
|
|
|
|
If we are trying to connect a service and there is another
service connecting, then we disconnect the pending service
and connect the new one.
Fixes BMC#25981
|
|
We did not send the IP config changed signal during disconnect.
This can confuse the dbus signal listeners.
Fixes BMC#25989
|
|
If we are changing IPv4 config, then send only IPv4 changed signal
and not the IPv6 one. Same is done for IPv6 config when it changes.
|
|
If the service is provisioned via .config file, then user is only
able to set the AutoConnect status of the service. All the other
settings must be set from the .config file.
Fixes BMC#25984
|
|
|
|
This is needed to make a service go online in the case where it was
already connected and then manual IPv4 & nameservers settings are
applied. In that case, wispr is restarted with the new IP settings, but
the nameservers have not been set yet, so the wispr test fails and the
service remains in ready state.
|
|
Done so that the function can be called also from config.c
The idea is that if ethernet .config file is removed,
we are able to clear the interface properly.
|
|
|
|
|
|
|
|
When setting IP address information via D-Bus, first create a new ipconfig
structure to hold the values. If the values were validated correctly, update
the service ipconfig structure with the new values. In order to achieve
this, refactor the existing code.
Fixes BMC#25930
|
|
The caller has to set the created ipconfig into its data structures.
|
|
If NULL is returned, GDBus will call the registered function repeatedly.
|
|
Fixes BMC#25862
|
|
|
|
When getting 1 service to online, and disonnecting it: Manager state
stays at 'ready'. This is due to service updating the notifier about
its state 'ready' 2 times. Once when connecting: idle -> ready, and
once when disconnecting: online -> ready.
|
|
|
|
|
|
The VPN needs to be able to call the provider disconnect.
|
|
Service and network code use only interface indexes. Convert the rest of
the code using interface names to use interface indexes instead. The files
affected are:
include/resolver.h
src/connman.h
src/dnsproxy.c
src/resolver.c
src/rtnl.c
src/service.c
src/tethering.c
As the network and service code used interface indexes, the interface
name had to be looked up via a SIOCGIFNAME ioctl when needed. If a service
was removed due to the interface and network being taken down, the lookup
wouldn't work. This caused DNS servers to be left behind with broken sockets
since removing the DNS servers was done using the interface name.
|
|
Don't override user connected services with the ones selected by the
preferred technology list when SingleConnectedTechnology is enabled.
Do this by checking each connected service sorted in the beginning of
the service list for the userconnect flag.
|
|
Remember whether the service was connected by the user via D-Bus
until the service gets disconnected.
|
|
If SingleConnectedTechnology is enabled in main.conf, disconnect any
previously connected services when the new service enters ready state.
|
|
Calling switch_default_service() didn't change the service order since
the services were already sorted that way. Also update the gateway
immediately.
|
|
Simplify the preferred service selection such that a connected
service is good enough, especially since a connecting service
will also terminate the search for the current preferred one.
|
|
Don't trigger a new autoconnect when neither the default nor the new
service is preferred. Rely on the fact that normal autoconnect selection
mechanism has done the work for us already.
|
|
|
|
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.
|
|
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.
|
|
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 timer id was not cleared in case the signal creation failed.
|
|
Updated service properties are not sent before the new service
has been announced in a 'ServicesChanged' signal.
Fixes BMC#21285
|
|
If the invalid key error is not cleared on Agent reply, the
service cannot be reconnected.
|
|
Allow user to initiate connection if there are multiple devices
of the same technology type available (like having multiple wifi
cards).
|
|
Move clearing of the error to __connman_service_connect() so it is
cleared for all service connect code paths.
|
|
|
|
The provider connect dbus reply message is stored in service
until provider is connected.
|
|
|
|
|
|
The provider was not disconnected after a connection timeout.
This lead to weird issues in VPN code; like following provider
connect request would disconnect the earlier VPN connection and
report EALREADY to the user.
|
|
|
|
|
|
In order to allow clients to update the property in a manner similar to
other service properties, signal changes in the service "Error" property
key/value pair.
The value "" is used when no error is asserted because D-Bus property
changed convention has no semantics for indicating a key/value pair was
removed.
|
|
|
|
The service state will be set to proper state if we are
actually doing the connection so do not set the state
when we are just setting the IPv4 method.
|
|
Check if the service IPv4/6 ipconfig is turned OFF, in this
case do not try to connect to that service because it will
not succeed.
Fixes BMC#25587
|