summaryrefslogtreecommitdiff
path: root/src/service.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-04Tizen: Add always on featureArron Wang1-0/+40
run auto connection when default service is NULL will not auto connect MMS cellular service
2013-07-04Tizen: Fix wifi enterprise to support SIM and AKAArron Wang1-0/+12
Revise Wi-Fi enterprise to enable PEAP, TLS, TTLS Fix wifi enterprise to support SIM and AKA
2013-07-01Tizen: Export network proxy API for telephony pluginArron Wang1-0/+16
Telephony plug-in requires manual PROXY setting function Telephony stack provides proxy address (3G profile).
2013-07-01Fix Wi-Fi WEP OPEN and WEP SHAREDJaehyun Kim1-0/+6
Unable to connect with the WEP(open key) mode AP again with correct password if connecting the AP with wrong password before. Fix this issue.
2013-07-01Tizen: Add refcount for cellular service connectionArron Wang1-0/+85
TIZEN implements system global connection management. It's only for PDP (cellular) bearer. Wi-Fi is managed by ConnMan automatically. Reference count can help to manage open/close connection requests by each application.
2013-07-01Tizen: Fix reply pending bugArron Wang1-0/+12
2013-07-01Tizen: Append extra wifi service propertyArron Wang1-0/+42
Append wifi property bssid, maxrate, frequency, encryptionmode to wifi service
2013-05-29service: Update Domains property when Domains.Configuration changesPatrik Flykt1-0/+1
Domains property was not updated when Domains.Configuration was changed. If Domains.Configuration is for example set to empty when using DHCP, the Domains property is to be updated with the value configured via DHCP. Fixes BMC#26010
2013-05-29service: Check service type before fetching interface indexPatrik Flykt1-1/+4
For VPNs, the index is available from provider, for other services from network. Fixes BMC#26009
2013-05-21service: Restart timeserver polling only for the default servicePatrik Flykt1-1/+3
When timeservers are set, recreate timeserver polling list only if the service is the the default one.
2013-04-26service: Replace connman_uint8_t with uint8_tPatrik Flykt1-3/+4
2013-04-13service: Set state properly after disconnecting the associating serviceJukka Rissanen1-1/+3
This is related to fix d7d8f8bdb7c1ddae098893e10608fcb42034a9ff We did not set the state to idle after disconnecting the associating service. Fixes BMC#25981
2013-04-05service: Drop unused argument in preferred_tech_list_get()Daniel Wagner1-2/+2
2013-03-27service: Disconnect the connecting service when neededJukka Rissanen1-2/+12
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
2013-03-25service: Send IP config changed signal in disconnectJukka Rissanen1-0/+3
We did not send the IP config changed signal during disconnect. This can confuse the dbus signal listeners. Fixes BMC#25989
2013-03-25service: Only send correct ipconfig changed signalJukka Rissanen1-5/+10
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.
2013-03-14service: User cannot modify immutable serviceJukka Rissanen1-0/+15
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
2013-03-08service: Send signal only if immutable flag value changesJukka Rissanen1-0/+4
2013-03-06service: Restart wispr on nameserver changeForest Bond1-0/+10
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.
2013-02-22service: Refactor ipconfig setterJukka Rissanen1-13/+19
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.
2013-02-22service: Add function to set timeserversJukka Rissanen1-0/+15
2013-02-22service: Add function to manipulate DNS search domainsJukka Rissanen1-0/+19
2013-02-22service: Add function to manipulate ignore flagJukka Rissanen1-0/+11
2013-02-05service: Validate the IP addresses before usePatrik Flykt1-41/+58
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
2013-02-05service: Factor out ipconfig creationPatrik Flykt1-20/+38
The caller has to set the created ipconfig into its data structures.
2013-01-30service: Must not return NULL with a synchronous GDBus method callPatrik Flykt1-2/+0
If NULL is returned, GDBus will call the registered function repeatedly.
2013-01-24service: Notify leaving online state when downgrading it to readyTomasz Bursztyka1-1/+3
Fixes BMC#25862
2013-01-16service: Trigger autoconnect when AutoConnect flag is enabledJukka Rissanen1-0/+3
2013-01-15service: Update notifier state when relevant while getting readyTomasz Bursztyka1-1/+2
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.
2013-01-04core: Remove WiMAX definitions from codePatrik Flykt1-13/+0
2012-11-23agent: Split agent code into generic and service specific partsJukka Rissanen1-4/+52
2012-11-23provider: Provider disconnect function made available to pluginJukka Rissanen1-4/+4
The VPN needs to be able to call the provider disconnect.
2012-11-22core: Use interface index instead of interface namePatrik Flykt1-42/+29
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.
2012-10-18service: Prefer user connected services with SingleConnectedTechnologyPatrik Flykt1-0/+20
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.
2012-10-18service: Clear user connected flag on disconnectPatrik Flykt1-2/+2
Remember whether the service was connected by the user via D-Bus until the service gets disconnected.
2012-10-18service: Keep only a single connected technology if configuredPatrik Flykt1-0/+33
If SingleConnectedTechnology is enabled in main.conf, disconnect any previously connected services when the new service enters ready state.
2012-10-18service: Fix default service switching and setting gatewayPatrik Flykt1-2/+3
Calling switch_default_service() didn't change the service order since the services were already sorted that way. Also update the gateway immediately.
2012-10-18service: A preferred service in state ready is good enoughPatrik Flykt1-5/+1
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.
2012-10-18service: Don't trigger autoconnect when neither service is preferredPatrik Flykt1-3/+0
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.
2012-09-28wispr: Service does not need to be reference countedPatrik Flykt1-0/+1
2012-09-04agent: Cancel agent requestsPatrik Flykt1-0/+2
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-04Use g_slist_prepend() where appropriatePatrik Flykt1-1/+1
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-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-22service: Always zero the timeout id when timer triggersPatrik Flykt1-1/+2
The timer id was not cleared in case the signal creation failed.
2012-08-22service: Send updated properties after ServicesChangedPatrik Flykt1-3/+75
Updated service properties are not sent before the new service has been announced in a 'ServicesChanged' signal. Fixes BMC#21285
2012-08-20service: Restore error clearing on Agent replyPatrik Flykt1-0/+3
If the invalid key error is not cleared on Agent reply, the service cannot be reconnected.
2012-08-17service: Allow connection if there are interfaces availableJukka Rissanen1-1/+32
Allow user to initiate connection if there are multiple devices of the same technology type available (like having multiple wifi cards).
2012-08-17service: Clear service error on successfull connection attemptsPatrik Flykt1-5/+4
Move clearing of the error to __connman_service_connect() so it is cleared for all service connect code paths.
2012-08-15provider: Return EINPROGRESS to the caller when connect is pendingJukka Rissanen1-0/+6
2012-08-15service: Remember provider pending dbus messageJukka Rissanen1-0/+26
The provider connect dbus reply message is stored in service until provider is connected.