summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-04-11TODO: Mark DefaultAutoConnectTechnologies donePatrik Flykt1-11/+0
2012-04-11service: Set autoconnect according to configured preferencesPatrik Flykt1-5/+14
2012-04-11main: Add 'DefaultAutoConnectTechnologies' configuration optionPatrik Flykt2-0/+62
The main.conf 'DefaultAutoConnectTechnologies' is a list of service type strings. It is converted to a list of service type enums, and thus the configuration option is accessible via the function connman_setting_get_uint_list(). If this option is not specified, the default technologies to autoconnect are wifi, ethernet and cellular just like before.
2012-04-11service: Add __connman_service_string2type() functionPatrik Flykt2-0/+28
2012-04-05timeserver: Check for resolv before accessing itAlok Barsode1-1/+1
In order to cancel any ongoing resolution, check if both resolv and resolv_id are valid.
2012-04-05timeservers: Add Fallback TimerserversAlok Barsode2-0/+14
Add Fallback timeservers via main.conf. These timeservers are used for time corrections when there are no valid timeservers provided by the user or by the network. The list of timeservers which are queried for timing correction are Timeservers.Configuration (set by the user), service timeservers(via service), gateway, global timeservers (via clock API) and fallback timeservers, in that order.
2012-04-05main: Parse FallbackTimeservers list from main.confAlok Barsode2-0/+22
2012-04-05ntp: Shorten NTP failure delayAlok Barsode1-2/+2
If the NTP server failed to respond, NTP client wait for 16 seconds before trying the next server. But since now we have the default gateway as a possible candidate for NTP (which has higher priority over global timeaservers), there might be a chance that it might fail to respond to a NTP query (e.g a wifi router without ntp support). We have to wait for 16 sec, untill NTP switches to the next server. This seems like a long period, especially if you made timezone changes and you want the NTP sync to happen asap. Hence reducing this timeout to 5 seconds.
2012-04-05test: Add set-timeserversAlok Barsode1-0/+20
Add script to modify service Timeservers.Configuration property.
2012-04-05doc: Add Timeserves.Configuration service propertyAlok Barsode1-0/+15
2012-04-05timeserver: Add Timeservers.Configuration to timeserver listAlok Barsode2-0/+9
Add Timeservers.Configuration timerservers (if any) to the list of timeservers for time correction query. Now the Order is Timeserver.Config (via the user), service timeserver (via DHCP). default gateway (system), global timeservers (via the user).
2012-04-05service: Add Timeservers.Configuration PropertyAlok Barsode2-0/+80
This property helps to add service specific timeservers. These are set by the user and are per service.
2012-04-05timeserver: Add service gateway to timeserver listAlok Barsode1-3/+17
Add default service gateway to the timeserver query list. Now the list is service timeservers (via DHCP), gateway and global timeservers, in that order.
2012-04-05timeserver: Create timeserver listAlok Barsode2-83/+119
Create a timeserver list for NTP query. This list consists of timeserver provided via DHCP and the ones set by user in that order. We recreate this list everytime the default service changes or one of the timeserver values change. Use getaddrinfo to determine if the timeserver is a domain name or a IP address.
2012-04-05timeserver: Trigger ntp on default changed notifierAlok Barsode2-7/+30
Trigger NTP sync on default service going to READY/ONLINE state instead of triggering NTP sync on ONLINE state only. This makes sense for local ntp servers even if the wispr check fails.
2012-04-05service: Add __connman_service_get_defaultAlok Barsode2-6/+7
Export the default service via this api. This is helpful to obtain info like default service's timeserver list and gateway.
2012-04-05Replace older system timeserver values with new ones instead of appendingAlok Barsode3-98/+24
Fixes BMC#24997.
2012-04-05meego: Remove the meego pluginAlok Barsode5-63/+0
The fallback Timeservers should replace this plugin.
2012-04-05gdbus: Use destroy callback for service watchAnderson Lizardo1-1/+1
Even though service watches accepted a "destroy" callback, they were being ignored. This fix properly pass them along so they are called when the watch is removed.
2012-04-05gdbus: Fix white space coding style issueSyam Sidhardhan1-1/+1
- corrected the space before '{'
2012-04-05connection: Add host route for VPN when setting default gatewayJukka Rissanen1-0/+4
This is needed so that VPN gets default route when moving services. That can happen if VPN did not had default route before.
2012-04-05connection: Remove wrong VPN routeJukka Rissanen1-10/+22
Before this patch the system created following routes for VPN Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.10.9 0.0.0.0 UG 0 0 0 vpn0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 vpn0 192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0 192.168.10.1 192.168.10.9 255.255.255.255 UGH 0 0 0 vpn0 192.168.10.9 0.0.0.0 255.255.255.255 UH 0 0 0 vpn0 Here the route to gateway in wlan0 192.168.2.1 via vpn0 is not correct and it will prevent connections to 192.168.2.1 The correct routes should be: Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.10.9 0.0.0.0 UG 0 0 0 vpn0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0 192.168.10.1 192.168.10.9 255.255.255.255 UGH 0 0 0 vpn0 192.168.10.9 0.0.0.0 255.255.255.255 UH 0 0 0 vpn0 Fixes MBC#25035
2012-04-05inet: Build failure fixPatrik Flykt1-1/+1
"The format modifier for size_t is %zd." (Marcel, 20/12/2011)
2012-04-056to4: Connectivity check was done too earlyJukka Rissanen1-13/+71
The 6to4 code checks that we can connect to ipv6.connman.net host via tunnel. The check can be done only after we have the tunnel up and running. The patch makes sure that we do the checks only after we have got newlink message from rtnl.
2012-04-05gweb: Add more debug prints when error happensJukka Rissanen1-0/+3
These prints are useful when checking why network connection failed.
2012-04-056to4: Add web debug printsJukka Rissanen1-0/+9
In order to see what is the problem with web connection, add debug print function.
2012-04-05inet: Refactor rtnl functions in 6to4.cJukka Rissanen3-191/+375
The rtnl support functions are now in inet.c which is a more logical place for them and now other files can also use them.
2012-04-05connection: Set additional point-to-point routeJukka Rissanen1-16/+40
This is useful if P-t-P link does not have a default route. Fixes BMC#25027
2012-04-05service: Nameservers behind P-t-P link need special handlingJukka Rissanen1-8/+23
Setting routes to nameservers need special setup if the nameservers are behind point-to-point link, the gateway must not be set in this case.
2012-04-05net: Add functions to get dest address of P-t-P linkJukka Rissanen2-0/+96
These functions are needed when we need to setup a route to point-to-point link destination address. The route is needed if P-t-P link does not have a default route.
2012-04-05todo: Mark split tunneling/routing doneJukka Rissanen1-14/+0
2012-04-05connection: Remove original default route only when neededJukka Rissanen1-2/+8
If the new VPN gateway has split routing set, then do not clear original default route because VPN will not set the default route. Without this check we would not get any proper default route set.
2012-04-05service: Return service split routing statusJukka Rissanen2-0/+7
2012-04-05connection: Update service list orderJukka Rissanen1-0/+2
This is done as we might have changed the order of the services so force update of the service list.
2012-04-05service: Add function to update the service list orderJukka Rissanen2-0/+10
2012-04-05service: Save/load split routing information for VPNJukka Rissanen1-2/+8
2012-04-05service: Allow user to do split routing for VPN servicesJukka Rissanen1-6/+30
The split routing is done when user moves the services and it is only done if there are routes defined for that specific VPN provider.
2012-04-05provider: Check if there are any routes for the providerJukka Rissanen2-0/+18
2012-04-05provider: Allow user to set routes when creating providerJukka Rissanen1-2/+51
2012-04-05provider: Save and load user specified routesJukka Rissanen1-4/+74
2012-04-05provider: Add support for user defined routesJukka Rissanen2-0/+36
Allow user to add routes when setting up VPN. This is useful if the VPN cannot be configured to setup additional routes itself.
2012-04-04update Gustavo's email addressGustavo Padovan1-1/+1
The old one is not valid anymore.
2012-04-02ofono: Fix NULL pointer access in set_disconnect()Daniel Wagner1-0/+3
oFono sends several ConnectionContext.PropertyChanged("Active", False) after it was told to disconnect. After studying the oFono part, it looks like that serveral CREGS updates could trigger oFono to send us the same flag over and over again (see ofono_gprs_status_notify()). Even though oFono might missbehave, ConnMan should not crash so easily. Luckely, the fix is very simple. We should just check if we still have a valid network pointer before accessing it. Fixes BMC#25026
2012-04-02dnsproxy: Refactor request destroy codeDaniel Wagner1-14/+13
Move common code into a function for destroying the request data.
2012-03-27provider: Free provider when destructing itJukka Rissanen1-0/+1
Valgrind reports memory leak here.
2012-03-27vpn: Unref provider properlyJukka Rissanen1-2/+6
The provider can be unreffed in vpn_died() or in vpn_disconnect(). We must do the unref only once.
2012-03-21dnsproxy: Remove pending requests before destroying the channelJulien Massot1-0/+4
This fixes a segfault in request_timeout when disabling tethering.
2012-03-20gweb: workaround for setsockopt failureSébastien Bianti1-12/+56
Setting socket option BINDTODEVICE requires CAP_NET_RAW capability.
2012-03-20TODO: Create tasks for main.conf variablesPatrik Flykt1-0/+35
2012-03-20set-ipv6-method: The arguments have to be wrapped into a variantDaniel Wagner1-5/+8
Fixes BMC#24986