platform/upstream/connman.git
13 years agoprovider: Add IP setters
Daniel Wagner [Wed, 23 Feb 2011 18:57:08 +0000 (19:57 +0100)]
provider: Add IP setters

13 years agonetwork: Add IP setters
Daniel Wagner [Wed, 23 Feb 2011 18:23:11 +0000 (19:23 +0100)]
network: Add IP setters

13 years agoservice: Add a nameserver clearing routine
Samuel Ortiz [Wed, 23 Feb 2011 18:15:07 +0000 (19:15 +0100)]
service: Add a nameserver clearing routine

13 years agoservice: Add timeserver and pac setters
Daniel Wagner [Wed, 23 Feb 2011 17:53:05 +0000 (18:53 +0100)]
service: Add timeserver and pac setters

13 years agoipconfig: Save IPv6 privacy setting
Samuel Ortiz [Wed, 23 Feb 2011 11:41:21 +0000 (12:41 +0100)]
ipconfig: Save IPv6 privacy setting

13 years agoipconfig: Only save FIXED & MANUAL IP configuraiton
Daniel Wagner [Tue, 22 Feb 2011 16:17:48 +0000 (17:17 +0100)]
ipconfig: Only save FIXED & MANUAL IP configuraiton

13 years agonetwork: Remove address field
Samuel Ortiz [Tue, 22 Feb 2011 15:52:41 +0000 (16:52 +0100)]
network: Remove address field

The address network field holds the WiFi BSSID but is unused.

13 years agoRelease 0.70 0.70
Marcel Holtmann [Tue, 22 Feb 2011 08:25:48 +0000 (00:25 -0800)]
Release 0.70

13 years agoconnection: Check gateway_hash value before call update_order()
Martin Xu [Tue, 22 Feb 2011 06:23:26 +0000 (14:23 +0800)]
connection: Check gateway_hash value before call update_order()

When exit from ConnMan, __connman_connection_cleanup() is called
before __connman_service_cleanup() which then calls update_order().
__connman_connection_cleanup() sets gateway_hash as NULL, so update_order()
will access NULL hash and causes GLib-CRITICAL abort

13 years agoservice: Do not duplicate nameserver entries
Samuel Ortiz [Mon, 21 Feb 2011 23:48:58 +0000 (00:48 +0100)]
service: Do not duplicate nameserver entries

13 years agowifi: Remove interfaces from the bridge when disabling tethering
Samuel Ortiz [Mon, 21 Feb 2011 20:32:54 +0000 (21:32 +0100)]
wifi: Remove interfaces from the bridge when disabling tethering

13 years agotest: Fix tethering scripts
Samuel Ortiz [Mon, 21 Feb 2011 20:26:19 +0000 (21:26 +0100)]
test: Fix tethering scripts

Check for the enabling/disabling python return values.

13 years agotest: Enable or disable IPv6 privacy extension
Jukka Rissanen [Mon, 21 Feb 2011 15:40:24 +0000 (17:40 +0200)]
test: Enable or disable IPv6 privacy extension

13 years agoipconfig: Support IPv6 privacy extension for autoconf addresses
Jukka Rissanen [Mon, 21 Feb 2011 15:40:23 +0000 (17:40 +0200)]
ipconfig: Support IPv6 privacy extension for autoconf addresses

13 years agodoc: Add description about IPv6 privacy setting
Jukka Rissanen [Mon, 21 Feb 2011 15:40:22 +0000 (17:40 +0200)]
doc: Add description about IPv6 privacy setting

13 years agodevice: Initial scan delays exponential backoff
Samuel Ortiz [Fri, 18 Feb 2011 20:01:38 +0000 (21:01 +0100)]
device: Initial scan delays exponential backoff

Scanning delays increase exponentially from 10 seconds to the scanning
interval, as long as the device network list is empty.

13 years agoipconfig: Enable and disable IPv6 properly
Jukka Rissanen [Fri, 18 Feb 2011 11:43:00 +0000 (13:43 +0200)]
ipconfig: Enable and disable IPv6 properly

this sets the IPv6 status correctly by
- enabling IPv6 when service config is loaded and method is AUTO or MANUAL
- and disabling IPv6 when service is connected and method is OFF

13 years agotest: Remove APN support from test-connman
Samuel Ortiz [Fri, 18 Feb 2011 14:16:31 +0000 (15:16 +0100)]
test: Remove APN support from test-connman

13 years agoofono: Fix infinite recursion in network disconnect
Henri Bragge [Thu, 17 Feb 2011 11:51:47 +0000 (13:51 +0200)]
ofono: Fix infinite recursion in network disconnect

If association takes too long and connection timeout goes off, then
connman will try to disconnect and ends up in infinite recursion when
__connman_network_disconnect() and connman_network_set_connected() call
each other.

13 years agoofono: Fix memory leak in network activation
Henri Bragge [Thu, 17 Feb 2011 11:51:25 +0000 (13:51 +0200)]
ofono: Fix memory leak in network activation

13 years agoipconfig: Toggle interface IPv6 status properly
Jukka Rissanen [Thu, 17 Feb 2011 07:59:30 +0000 (09:59 +0200)]
ipconfig: Toggle interface IPv6 status properly

This is done so that if service is disconnected, the kernel
created autoconf routes need to be cleared also.
That can be done easily by disabling IPv6 for that interface.
The disabling of IPv6 is only done for autoconfigured interfaces.
When service is connected, the IPv6 is enabled for the used
interface.

13 years agoportal: Print region information if available
Marcel Holtmann [Thu, 17 Feb 2011 06:00:35 +0000 (22:00 -0800)]
portal: Print region information if available

13 years agodnsproxy: Add domains to the query only when it has no dot
Samuel Ortiz [Thu, 17 Feb 2011 00:09:52 +0000 (01:09 +0100)]
dnsproxy: Add domains to the query only when it has no dot

13 years agoipv4: Add domainame before moving to READY state
Samuel Ortiz [Wed, 16 Feb 2011 23:17:03 +0000 (00:17 +0100)]
ipv4: Add domainame before moving to READY state

13 years agonetwork: Remove unused parameter from autoconf_ipv6_set()
Jukka Rissanen [Wed, 16 Feb 2011 13:07:48 +0000 (15:07 +0200)]
network: Remove unused parameter from autoconf_ipv6_set()

13 years agotechnology: Rename __connman_technology_[enable|disable]_device
Alok Barsode [Wed, 16 Feb 2011 09:03:30 +0000 (11:03 +0200)]
technology: Rename __connman_technology_[enable|disable]_device

13 years agoservice: Remove unused mcc and mnc fields
Samuel Ortiz [Wed, 16 Feb 2011 00:46:02 +0000 (01:46 +0100)]
service: Remove unused mcc and mnc fields

13 years agoservice: Remove APN property
Samuel Ortiz [Wed, 16 Feb 2011 00:38:44 +0000 (01:38 +0100)]
service: Remove APN property

APNs are operator specific settings and should be either provisioned
or set through oFono.

13 years agogweb: Avoid forward declarations in resolver code
Marcel Holtmann [Wed, 16 Feb 2011 00:14:46 +0000 (16:14 -0800)]
gweb: Avoid forward declarations in resolver code

13 years agogweb: Some coding style cleanup on resolver code
Marcel Holtmann [Wed, 16 Feb 2011 00:11:12 +0000 (16:11 -0800)]
gweb: Some coding style cleanup on resolver code

13 years agoservice: Compare combined states in service_compare()
Samuel Ortiz [Tue, 15 Feb 2011 16:15:03 +0000 (17:15 +0100)]
service: Compare combined states in service_compare()

13 years agoconnection: Remove connection element
Daniel Wagner [Tue, 15 Feb 2011 15:45:23 +0000 (16:45 +0100)]
connection: Remove connection element

13 years agoipconfig: Add ipaddress setters/getters
Daniel Wagner [Tue, 15 Feb 2011 14:51:51 +0000 (15:51 +0100)]
ipconfig: Add ipaddress setters/getters

13 years agoipconfig: Rename __connman_ipconfig_get_*(index)
Daniel Wagner [Tue, 15 Feb 2011 14:51:50 +0000 (15:51 +0100)]
ipconfig: Rename __connman_ipconfig_get_*(index)

To avoid a name clash with the next patch, the
__connman_ipconfig_get_*(index) have to be renamed.
Since they all use an index as lookup argument rename
them to __connman_ipconfig_get_*_from_index(index).

13 years agoservice: Refactor Service nameserver API
Daniel Wagner [Tue, 15 Feb 2011 14:51:49 +0000 (15:51 +0100)]
service: Refactor Service nameserver API

__connman_service_append/remove_namerserver() is renamed to
__connman_service_nameserver_append/remove to be more consistent with
the other Service API naming. Also the semantic changes to
append/remove instead of set/clear.

The list of configured nameservers takes preference over the list of
discovered (DHCP, VPN, ...) nameservers.

13 years agotechnology: Remove "blocked" state and use "offline" state instead
Alok Barsode [Wed, 9 Feb 2011 11:39:56 +0000 (13:39 +0200)]
technology: Remove "blocked" state and use "offline" state instead

Both "offline" and "blocked" states mean the same hence merging them.

13 years agonetwork: IPv6 must go through disconnect state before idle
Jukka Rissanen [Fri, 11 Feb 2011 13:22:53 +0000 (15:22 +0200)]
network: IPv6 must go through disconnect state before idle

13 years agonetwork: Back to IDLE when network is not connected
Samuel Ortiz [Fri, 11 Feb 2011 12:08:49 +0000 (13:08 +0100)]
network: Back to IDLE when network is not connected

13 years agoTODO: IPv6 enhancements are done
Jukka Rissanen [Thu, 10 Feb 2011 15:52:21 +0000 (17:52 +0200)]
TODO: IPv6 enhancements are done

13 years agoipconfig: Enable ipconfig if loading autoconfigurable IPv6 config
Jukka Rissanen [Thu, 10 Feb 2011 15:52:20 +0000 (17:52 +0200)]
ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config

13 years agoservice: Change IPv4 state when address is released
Jukka Rissanen [Thu, 10 Feb 2011 15:52:19 +0000 (17:52 +0200)]
service: Change IPv4 state when address is released

13 years agoservice: Check service state properly if user changes method
Jukka Rissanen [Thu, 10 Feb 2011 15:52:18 +0000 (17:52 +0200)]
service: Check service state properly if user changes method

13 years agoservice: IPv6 autoconf will change the service state
Jukka Rissanen [Thu, 10 Feb 2011 15:52:17 +0000 (17:52 +0200)]
service: IPv6 autoconf will change the service state

13 years agonetwork: Set service state correctly when ipconfig is cleared
Jukka Rissanen [Thu, 10 Feb 2011 15:52:16 +0000 (17:52 +0200)]
network: Set service state correctly when ipconfig is cleared

13 years agonetwork: Enable IPv6 autoconf to change the service state to ready
Jukka Rissanen [Thu, 10 Feb 2011 15:52:15 +0000 (17:52 +0200)]
network: Enable IPv6 autoconf to change the service state to ready

13 years agoipconfig: Enable or disable IPv6 when loading the saved service
Jukka Rissanen [Thu, 10 Feb 2011 15:52:14 +0000 (17:52 +0200)]
ipconfig: Enable or disable IPv6 when loading the saved service

13 years agoservice: Split service state to IPv4 and IPv6 parts
Jukka Rissanen [Thu, 10 Feb 2011 15:52:13 +0000 (17:52 +0200)]
service: Split service state to IPv4 and IPv6 parts

13 years agoipconfig: Added helper function that returns the config type
Jukka Rissanen [Thu, 10 Feb 2011 15:52:12 +0000 (17:52 +0200)]
ipconfig: Added helper function that returns the config type

13 years agoipv6: Add property for IPv6 nameserver
Jukka Rissanen [Thu, 10 Feb 2011 15:52:11 +0000 (17:52 +0200)]
ipv6: Add property for IPv6 nameserver

13 years agoipconfig: Clear the ipaddress pointers when address is deleted
Jukka Rissanen [Thu, 10 Feb 2011 15:52:10 +0000 (17:52 +0200)]
ipconfig: Clear the ipaddress pointers when address is deleted

13 years agoTODO: VPNc and WiFi tethering are done
Samuel Ortiz [Thu, 10 Feb 2011 16:34:51 +0000 (17:34 +0100)]
TODO: VPNc and WiFi tethering are done

13 years agotest: Improve tethering scripts
Samuel Ortiz [Thu, 10 Feb 2011 16:21:49 +0000 (17:21 +0100)]
test: Improve tethering scripts

13 years agotethering: Check for kernel bridge support
Samuel Ortiz [Thu, 10 Feb 2011 16:13:46 +0000 (17:13 +0100)]
tethering: Check for kernel bridge support

13 years agortnl: Fix some uninitalised warnings
Kalle Valo [Tue, 8 Feb 2011 15:36:07 +0000 (17:36 +0200)]
rtnl: Fix some uninitalised warnings

src/rtnl.c:578:8: error: 'src' may be used uninitialized in this function
src/rtnl.c:610:8: error: 'src' may be used uninitialized in this function
src/rtnl.c:1108:19: error: 'servers' may be used uninitialized in this function

13 years agoAUTHORS: Mention Alok's contributions
Samuel Ortiz [Tue, 8 Feb 2011 14:47:36 +0000 (15:47 +0100)]
AUTHORS: Mention Alok's contributions

13 years agotechnology: Optimize __connman_technology_remove_interface()
Alok Barsode [Mon, 7 Feb 2011 12:43:06 +0000 (14:43 +0200)]
technology: Optimize __connman_technology_remove_interface()

Using technology_find() instead of looping through technology_list.

13 years agotechnology: Optimize __connman_technology_add_interface()
Alok Barsode [Tue, 8 Feb 2011 13:03:41 +0000 (15:03 +0200)]
technology: Optimize __connman_technology_add_interface()

Instead of looping through the technology_list, using the technology
pointer returned by technology_get().

13 years agopacrunner: Remove unitialised use of host_ret variable
Kalle Valo [Mon, 7 Feb 2011 13:34:03 +0000 (15:34 +0200)]
pacrunner: Remove unitialised use of host_ret variable

For some reason there's a null check for host_ret in parse_url(), which
is at that point is an uninitialised local variable. Just remove the check.

plugins/pacrunner.c:316:5: error: 'host_ret' may be used uninitialized in
this function

13 years agoiptables: Fix uninitialised use of entry_return
Kalle Valo [Mon, 7 Feb 2011 13:33:56 +0000 (15:33 +0200)]
iptables: Fix uninitialised use of entry_return

src/iptables.c:432:20: error: ‘entry_return’ may be used
uninitialized in this function

13 years agoiptables-test: Fix uninitialised use of entry_return
Kalle Valo [Mon, 7 Feb 2011 13:33:43 +0000 (15:33 +0200)]
iptables-test: Fix uninitialised use of entry_return

tools/iptables-test.c:455:20: error: ‘entry_return’ may be used
uninitialized in this function

13 years agoAUTHORS: Mention Henri's contributions
Samuel Ortiz [Tue, 8 Feb 2011 00:12:17 +0000 (01:12 +0100)]
AUTHORS: Mention Henri's contributions

13 years agoofono: Handle ContextAdded/ContextRemoved signals
Henri Bragge [Mon, 7 Feb 2011 10:33:15 +0000 (12:33 +0200)]
ofono: Handle ContextAdded/ContextRemoved signals

13 years agowifi: Check invalid key/passphrase in gsupplicant connect callback
Patrik Flykt [Fri, 4 Feb 2011 13:14:22 +0000 (15:14 +0200)]
wifi: Check invalid key/passphrase in gsupplicant connect callback

Use network struct as connect callback user data and set network
error to CONNMAN_NETWORK_ERROR_INVALID_KEY if gsupplicant indicates
key/passphrase error. For other errors < 0 set network error to
CONNMAN_NETWORK_ERROR_CONFIGURE_FAIL.

13 years agonetwork: Add CONNMAN_NETWORK_ERROR_INVALID_KEY for a network
Patrik Flykt [Fri, 4 Feb 2011 13:14:21 +0000 (15:14 +0200)]
network: Add CONNMAN_NETWORK_ERROR_INVALID_KEY for a network

Add invalid key/passphrase definition for a network and propagate
it to the associated service.

13 years agoservice: Add CONNMAN_SERVICE_ERROR_INVALID_KEY to service error enum
Patrik Flykt [Fri, 4 Feb 2011 13:14:20 +0000 (15:14 +0200)]
service: Add CONNMAN_SERVICE_ERROR_INVALID_KEY to service error enum

Add invalid key/passphrase definition for a service and unset the
current passphrase when this error is indicated.

13 years agogsupplicant: Report AddNetwork and SelectNetwork errors to caller
Patrik Flykt [Fri, 4 Feb 2011 13:14:19 +0000 (15:14 +0200)]
gsupplicant: Report AddNetwork and SelectNetwork errors to caller

Call interface_connect_data callback when an error is reported for
wpa_supplicant AddNetwork and SelectNetwork method calls. In the case
of WPA-PSK or WEP key being incorrectly formatted, set the callback
result to -ENOKEY.

13 years agodnsproxy: Do not add NULL domains to the domain list
Samuel Ortiz [Mon, 7 Feb 2011 23:56:04 +0000 (00:56 +0100)]
dnsproxy: Do not add NULL domains to the domain list

13 years agoplugin: Allow colon as plugin name separator
Marcel Holtmann [Mon, 7 Feb 2011 03:27:40 +0000 (19:27 -0800)]
plugin: Allow colon as plugin name separator

13 years agoRelease 0.69 0.69
Marcel Holtmann [Sun, 6 Feb 2011 17:03:23 +0000 (09:03 -0800)]
Release 0.69

13 years agoservice: Remove WPS from the exported D-Bus properties
Samuel Ortiz [Fri, 4 Feb 2011 19:18:23 +0000 (20:18 +0100)]
service: Remove WPS from the exported D-Bus properties

When WPS is supported it is added to the security string array.

13 years agoAUTHORS: Mention Guillaume's contributions
Samuel Ortiz [Fri, 4 Feb 2011 10:40:07 +0000 (11:40 +0100)]
AUTHORS: Mention Guillaume's contributions

13 years agoethernet: Create the bridge before to add an interface to it.
Guillaume Lucas [Fri, 4 Feb 2011 08:04:07 +0000 (08:04 +0000)]
ethernet: Create the bridge before to add an interface to it.

The bridge is created by the connman_technology_tethering_notify()
function. So this function must be called before to add an interface
to the bridge. Means before the call to connman_inet_add_to_bridge().

13 years agotechnology: trigger technology creation by new interface
Guillaume Lucas [Fri, 4 Feb 2011 08:04:05 +0000 (08:04 +0000)]
technology: trigger technology creation by new interface

13 years agoproxy: Add implementation for internal proxy framework.
Mohamed Abbas [Thu, 3 Feb 2011 23:46:29 +0000 (15:46 -0800)]
proxy: Add implementation for internal proxy framework.

Add support to call registered proxy driver and report
proxy to client.

Also Make sure we cancel proxy request if we got disconnected and still
waiting for proxy request. Also make sure we set/clear token correctly

13 years agopacrunner: Add pacrunner proxy driver.
Mohamed Abbas [Thu, 3 Feb 2011 23:46:28 +0000 (15:46 -0800)]
pacrunner: Add pacrunner proxy driver.

Register pacrunner proxy driver, add proxy driver functions and
call pacrunner daemon to find proxy.

13 years agolocation: Allow to get the service for a location
Mohamed Abbas [Thu, 3 Feb 2011 23:46:27 +0000 (15:46 -0800)]
location: Allow to get the service for a location

Add new function to return the service for a location.

13 years agoTODO: Claim ownership of the provisioning API task
Henri Bragge [Mon, 31 Jan 2011 14:37:50 +0000 (16:37 +0200)]
TODO: Claim ownership of the provisioning API task

13 years agowifi: Debug string typo
Samuel Ortiz [Thu, 3 Feb 2011 12:04:10 +0000 (13:04 +0100)]
wifi: Debug string typo

13 years agowifi: Return a tethering error if AP mode is not supported at all
Samuel Ortiz [Thu, 3 Feb 2011 12:00:48 +0000 (13:00 +0100)]
wifi: Return a tethering error if AP mode is not supported at all

13 years agostats: Add comment about MAP_SHARED
Daniel Wagner [Wed, 2 Feb 2011 08:40:48 +0000 (09:40 +0100)]
stats: Add comment about MAP_SHARED

Clarify why MAP_SHARED is used instead of the obvious MAP_PRIVATE.

13 years agoAUTHORS: Mention Grant's contributions
Samuel Ortiz [Thu, 3 Feb 2011 00:01:25 +0000 (01:01 +0100)]
AUTHORS: Mention Grant's contributions

13 years agogsupplicant: Add ciphers only for WPA PSK and EAP
Samuel Ortiz [Wed, 2 Feb 2011 23:51:08 +0000 (00:51 +0100)]
gsupplicant: Add ciphers only for WPA PSK and EAP

13 years agowifi: Use WPA2 only when in AP mode
Samuel Ortiz [Wed, 2 Feb 2011 23:39:03 +0000 (00:39 +0100)]
wifi: Use WPA2 only when in AP mode

13 years agogsupplicant: Set WPA protocol
Samuel Ortiz [Wed, 2 Feb 2011 23:38:37 +0000 (00:38 +0100)]
gsupplicant: Set WPA protocol

13 years agowifi: Set AP ciphers to CCMP only
Samuel Ortiz [Wed, 2 Feb 2011 23:25:33 +0000 (00:25 +0100)]
wifi: Set AP ciphers to CCMP only

For security reasons, only AES is supported.

13 years agogsupplicant: Set WPA ciphers
Samuel Ortiz [Wed, 2 Feb 2011 23:23:13 +0000 (00:23 +0100)]
gsupplicant: Set WPA ciphers

13 years agowifi: Initial tethering support
Samuel Ortiz [Wed, 2 Feb 2011 23:19:35 +0000 (00:19 +0100)]
wifi: Initial tethering support

13 years agogsupplicant: Add interface ap_scan property setting
Samuel Ortiz [Tue, 1 Feb 2011 17:58:45 +0000 (18:58 +0100)]
gsupplicant: Add interface ap_scan property setting

13 years agogsupplicant: Add interface bridge setting
Samuel Ortiz [Tue, 1 Feb 2011 15:35:08 +0000 (16:35 +0100)]
gsupplicant: Add interface bridge setting

13 years agogsupplicant: Call select_network callback
Samuel Ortiz [Mon, 31 Jan 2011 17:55:35 +0000 (18:55 +0100)]
gsupplicant: Call select_network callback

13 years agogsupplicant: Add network scan ssid setting
Samuel Ortiz [Sat, 15 Jan 2011 00:43:41 +0000 (01:43 +0100)]
gsupplicant: Add network scan ssid setting

13 years agogsupplicant: Add network channel setting
Samuel Ortiz [Sat, 15 Jan 2011 00:38:00 +0000 (01:38 +0100)]
gsupplicant: Add network channel setting

13 years agogsupplicant: Add interface mode capability getter
Samuel Ortiz [Mon, 31 Jan 2011 15:38:48 +0000 (16:38 +0100)]
gsupplicant: Add interface mode capability getter

13 years agowifi: Track interfaces
Samuel Ortiz [Fri, 14 Jan 2011 17:36:35 +0000 (18:36 +0100)]
wifi: Track interfaces

13 years agogsupplicant: Add network mode support
Samuel Ortiz [Fri, 14 Jan 2011 17:59:11 +0000 (18:59 +0100)]
gsupplicant: Add network mode support

13 years agotest: Handle new tethering properties
Samuel Ortiz [Wed, 2 Feb 2011 17:35:36 +0000 (18:35 +0100)]
test: Handle new tethering properties

13 years agodoc: Update documentation regarding tethering properties
Samuel Ortiz [Wed, 2 Feb 2011 17:35:08 +0000 (18:35 +0100)]
doc: Update documentation regarding tethering properties

13 years agotethering: Add a tethering property per technology
Samuel Ortiz [Wed, 2 Feb 2011 17:33:09 +0000 (18:33 +0100)]
tethering: Add a tethering property per technology

The manager tethering property is now gone.

13 years agodnsproxy: Fallback to resolv.conf if dnsproxy fails
Daniel Wagner [Thu, 27 Jan 2011 14:31:36 +0000 (15:31 +0100)]
dnsproxy: Fallback to resolv.conf if dnsproxy fails

In case dnsproxy can't create the socket listener we
should fall back to resolv.conf.

Reported by Kalle Valo <kalle.valo@canonical.com>

13 years agostats: Fix double free error
Grant Erickson [Mon, 31 Jan 2011 14:56:54 +0000 (15:56 +0100)]
stats: Fix double free error

The error appears when stats_file_remap() fails.