platform/upstream/connman.git
13 years agoRelease 0.58 0.58
Marcel Holtmann [Sat, 21 Aug 2010 09:36:49 +0000 (11:36 +0200)]
Release 0.58

13 years agoFix VPN nameservers parsing
Samuel Ortiz [Fri, 20 Aug 2010 23:32:24 +0000 (01:32 +0200)]
Fix VPN nameservers parsing

13 years agoDisconnect VPNs when no physical services are left
Samuel Ortiz [Fri, 20 Aug 2010 22:51:26 +0000 (00:51 +0200)]
Disconnect VPNs when no physical services are left

This was previously handled by the provider notifier code, but with the
VPNs being moved to the service list top, it has to be handled from the
service layer directly.

13 years agoDefault service change notification when going online
Samuel Ortiz [Fri, 20 Aug 2010 00:22:57 +0000 (02:22 +0200)]
Default service change notification when going online

13 years agoVPN services should have the highest order
Samuel Ortiz [Fri, 20 Aug 2010 00:16:21 +0000 (02:16 +0200)]
VPN services should have the highest order

13 years agoVPN services also have an interface
Samuel Ortiz [Fri, 20 Aug 2010 00:14:32 +0000 (02:14 +0200)]
VPN services also have an interface

Although they don't have any networks, they have an interface.

13 years agoSet VPN services as the default ones
Samuel Ortiz [Fri, 20 Aug 2010 00:12:03 +0000 (02:12 +0200)]
Set VPN services as the default ones

With full-tunnel VPNs, the default service should be the VPN one.

13 years agoService lookup based on interface index
Samuel Ortiz [Fri, 20 Aug 2010 00:08:15 +0000 (02:08 +0200)]
Service lookup based on interface index

This routine allows to go from an interface index to a service pointer.

13 years agoerror: fix warning about formatting string
Pekka Pessi [Fri, 20 Aug 2010 16:26:39 +0000 (19:26 +0300)]
error: fix warning about formatting string

13 years agoMake backtrace script a bit more generic
Marcel Holtmann [Fri, 20 Aug 2010 12:43:50 +0000 (14:43 +0200)]
Make backtrace script a bit more generic

13 years agoMove the backtrace functions to a different place
Marcel Holtmann [Fri, 20 Aug 2010 12:40:59 +0000 (14:40 +0200)]
Move the backtrace functions to a different place

13 years agoFix iptables-test to work with iptables 1.4.9
Robert Piasek [Thu, 19 Aug 2010 20:02:44 +0000 (21:02 +0100)]
Fix iptables-test to work with iptables 1.4.9

Starting with version 1.4.9 iptables dropped xtables_set_revision
function. This patch removes any use of it.

13 years agoRemove wrong comma from D-Bus error message helper
Marcel Holtmann [Thu, 19 Aug 2010 17:38:01 +0000 (19:38 +0200)]
Remove wrong comma from D-Bus error message helper

13 years agoAdd printf format attribute for error creation helper
Marcel Holtmann [Thu, 19 Aug 2010 17:35:04 +0000 (19:35 +0200)]
Add printf format attribute for error creation helper

13 years agoFix whitespace damage
Daniel Wagner [Thu, 19 Aug 2010 07:33:22 +0000 (09:33 +0200)]
Fix whitespace damage

13 years agoAdd support for roaming/home network statistic
Daniel Wagner [Wed, 18 Aug 2010 15:56:06 +0000 (17:56 +0200)]
Add support for roaming/home network statistic

Currently connman only has one set of counters for
collecting statistics on online time and
the amount of transfered bytes.

For 3G connections we should destinguish between
home network and roaming. This patch introduces
two sets of counter values for home network
and roaming network.

Changing from Home to Roaming counters relies on
connman_network_set_roaming being called. Currently,
this is only done in the ofono plugin. Getting Wifi
'Hot-Spot Provider' Roaming (e.g.  T-Mobile Germany
to T-Mobile USA) is not yet working.

13 years agoRemove "__connman" prefix from static functions
Daniel Wagner [Wed, 18 Aug 2010 11:37:27 +0000 (13:37 +0200)]
Remove "__connman" prefix from static functions

__connman prefixes are for non static functions
exported to all connman core code (but not plugins).

connman prefixes are for non static functions
exported to all connman (core and plugins).

13 years agoAdd configuration file naming rules to documentation
Fabien Marotte [Wed, 18 Aug 2010 13:56:45 +0000 (15:56 +0200)]
Add configuration file naming rules to documentation

In case the user provides configuration files to connman, the
file name must respect some rules.

13 years agoAlways check for ns_initparse
Pekka Pessi [Tue, 17 Aug 2010 15:21:09 +0000 (18:21 +0300)]
Always check for ns_initparse

ns_initparse is used by gresolv, too.

13 years agoBacktrace support documentation
Samuel Ortiz [Tue, 17 Aug 2010 15:49:01 +0000 (17:49 +0200)]
Backtrace support documentation

13 years agoFix backtrace script formatting and mode bits
Samuel Ortiz [Tue, 17 Aug 2010 15:48:32 +0000 (17:48 +0200)]
Fix backtrace script formatting and mode bits

13 years agoConnMan backtrace support
Samuel Ortiz [Tue, 17 Aug 2010 15:10:46 +0000 (17:10 +0200)]
ConnMan backtrace support

Add a generic signal handler in order to dump ConnMan backtrace when
crashing. The implementation is based on glibc backtrace() routines and
thus can not resolve static function names. A little python wrapper over
addr2line fixes that by taking a full backtrace from a complete connman
log file.

13 years agoRemove some pointless spaces violating the coding style
Marcel Holtmann [Tue, 17 Aug 2010 14:46:52 +0000 (16:46 +0200)]
Remove some pointless spaces violating the coding style

13 years agoAdd support for EAP-TTLS configuration
Fabien Marotte [Tue, 17 Aug 2010 13:03:57 +0000 (15:03 +0200)]
Add support for EAP-TTLS configuration

EAP-TTLS and EAP-PEAP are similar in terms of options to pass to
wpa_supplicant. So in case of TTLS, the PEAP path is used.

13 years agoAdd more debug statements to DHCP library
Marcel Holtmann [Tue, 17 Aug 2010 10:42:54 +0000 (12:42 +0200)]
Add more debug statements to DHCP library

13 years agoSave profile when enabling device while in offline mode
Samuel Ortiz [Mon, 16 Aug 2010 13:09:50 +0000 (15:09 +0200)]
Save profile when enabling device while in offline mode

The profile is no longer offline when doing so and that state change
should be stored.

13 years agoRemove bluetooth network from device only when device is removed
Samuel Ortiz [Fri, 13 Aug 2010 18:06:17 +0000 (20:06 +0200)]
Remove bluetooth network from device only when device is removed

unregister_network could be called twice when unplugging and plugging
the same bluetooth dongle, when the same network gets detected.

13 years agoDisable technology when removing device
Samuel Ortiz [Fri, 13 Aug 2010 17:41:29 +0000 (19:41 +0200)]
Disable technology when removing device

If device_disable() returns being in progress, the technology has to be
disabled. Some technologies like 3G will call remove_device directly when
unplugging a modem and without disabling the corresponding technology,
the notifier enabled refcounts will get out pf sync.

13 years agoRelease 0.57 0.57
Marcel Holtmann [Thu, 12 Aug 2010 21:10:09 +0000 (17:10 -0400)]
Release 0.57

13 years agoBoth host and domain provider strings should not be NULL
Samuel Ortiz [Thu, 12 Aug 2010 11:26:58 +0000 (13:26 +0200)]
Both host and domain provider strings should not be NULL

13 years agoDevice is not offline when enabled succeeds or is in progress
Samuel Ortiz [Thu, 12 Aug 2010 11:03:11 +0000 (13:03 +0200)]
Device is not offline when enabled succeeds or is in progress

13 years agoFix typo
Marcel Holtmann [Tue, 10 Aug 2010 21:53:36 +0000 (17:53 -0400)]
Fix typo

13 years agoRemove unpaired Bluetooth devices
Samuel Ortiz [Tue, 10 Aug 2010 14:49:05 +0000 (16:49 +0200)]
Remove unpaired Bluetooth devices

13 years agoWatch for Bluetooth device changes
Samuel Ortiz [Tue, 10 Aug 2010 14:11:07 +0000 (16:11 +0200)]
Watch for Bluetooth device changes

By watching for UUIDs changes, the Bluetooth networks are created at
pairing time, no need to restart ConnMan to see them showing up.

13 years agoAdd BLOCKED technology state
Samuel Ortiz [Mon, 9 Aug 2010 21:07:38 +0000 (23:07 +0200)]
Add BLOCKED technology state

A technology is in BLOCKED state if all of its devices are rfkill blocked.

13 years agoExport devices blocked status
Samuel Ortiz [Mon, 9 Aug 2010 10:48:02 +0000 (12:48 +0200)]
Export devices blocked status

13 years agoDisconnect VPNs when all services are offline
Samuel Ortiz [Wed, 4 Aug 2010 13:13:49 +0000 (15:13 +0200)]
Disconnect VPNs when all services are offline

13 years agoFix provider refcounting
Samuel Ortiz [Mon, 9 Aug 2010 14:32:45 +0000 (16:32 +0200)]
Fix provider refcounting

The VPN service refcount is bumped at creation time and decreased at
destruction time.
The openconnect provider bumps the provider refcount at task creation
time and decreases it at task destruction time.
The service code bumps the provider refcount at service creation time and
decreases it at service releasing time.

13 years agoDisable offline devices upon device_set_connected(TRUE) calls
Samuel Ortiz [Thu, 5 Aug 2010 14:38:12 +0000 (16:38 +0200)]
Disable offline devices upon device_set_connected(TRUE) calls

Some devices are powered up asynchronously, and one can potentially
enable offline mode while the device is not powered up yet. The
device thus needs to be turned back off when it's finally reported
to be on.

13 years agoIf device is powered, set powered_pending from device_set_powered
Yingan Deng [Thu, 5 Aug 2010 14:32:01 +0000 (16:32 +0200)]
If device is powered, set powered_pending from device_set_powered

If connman_device_set_powered() is called when the device is already
powered, powered_pending should be set to the same value.

13 years agoAlways create a default profile
Samuel Ortiz [Fri, 6 Aug 2010 10:21:20 +0000 (12:21 +0200)]
Always create a default profile

Even if there are other existing profiles, always create a default one.

13 years agoExport IPv4 PAC
Samuel Ortiz [Thu, 5 Aug 2010 23:05:15 +0000 (01:05 +0200)]
Export IPv4 PAC

Export the DHCP fetched PAC through the service properties.

13 years agoExport the VPN PAC file to the VPN service
Samuel Ortiz [Thu, 5 Aug 2010 22:27:19 +0000 (00:27 +0200)]
Export the VPN PAC file to the VPN service

13 years agoBuild VPN services based on VPN host and domain strings
Samuel Ortiz [Thu, 5 Aug 2010 21:55:22 +0000 (23:55 +0200)]
Build VPN services based on VPN host and domain strings

13 years agoSimplify the provider creation code path
Samuel Ortiz [Thu, 5 Aug 2010 16:50:01 +0000 (18:50 +0200)]
Simplify the provider creation code path

13 years agoRemove useless provider_free routine
Samuel Ortiz [Thu, 5 Aug 2010 16:48:25 +0000 (18:48 +0200)]
Remove useless provider_free routine

13 years agoRelease 0.56 0.56
Marcel Holtmann [Wed, 4 Aug 2010 21:19:20 +0000 (14:19 -0700)]
Release 0.56

13 years agoUse five retries for DHCP discover and select requests
Marcel Holtmann [Tue, 3 Aug 2010 23:27:18 +0000 (16:27 -0700)]
Use five retries for DHCP discover and select requests

13 years agoUse connman_resolver_append() for adding VPN nameservers
Samuel Ortiz [Tue, 3 Aug 2010 22:30:08 +0000 (00:30 +0200)]
Use connman_resolver_append() for adding VPN nameservers

Only the last would be added with __connman_service_append_nameserver().

13 years agoAdd VPN nameservers after being connected
Samuel Ortiz [Tue, 3 Aug 2010 22:22:33 +0000 (00:22 +0200)]
Add VPN nameservers after being connected

13 years agoHave providers going through the configuration state
Samuel Ortiz [Tue, 3 Aug 2010 22:01:16 +0000 (00:01 +0200)]
Have providers going through the configuration state

This way the ipconfig layer is enabled in a timely fashion.

13 years agoAdd ipconfig layer to the VPN services
Samuel Ortiz [Tue, 3 Aug 2010 21:59:58 +0000 (23:59 +0200)]
Add ipconfig layer to the VPN services

13 years agoReturn when VPN ip setting fails
Samuel Ortiz [Tue, 3 Aug 2010 21:09:31 +0000 (23:09 +0200)]
Return when VPN ip setting fails

13 years agoIf hostname is not provided then don't request one via DHCP
Marcel Holtmann [Tue, 3 Aug 2010 16:24:25 +0000 (09:24 -0700)]
If hostname is not provided then don't request one via DHCP

13 years agoForward device_enable() error from enable_technolgy()
Samuel Ortiz [Tue, 3 Aug 2010 15:24:55 +0000 (17:24 +0200)]
Forward device_enable() error from enable_technolgy()

13 years agoDo not try to enable a device if it's rfkill blocked
Samuel Ortiz [Tue, 3 Aug 2010 14:28:46 +0000 (16:28 +0200)]
Do not try to enable a device if it's rfkill blocked

13 years agoToggle the powered_pending device flag only if driver op succeeds
Samuel Ortiz [Tue, 3 Aug 2010 14:03:33 +0000 (16:03 +0200)]
Toggle the powered_pending device flag only if driver op succeeds

13 years agoUse __connman_device_[enable|disable] from set_powered
Samuel Ortiz [Tue, 3 Aug 2010 14:52:16 +0000 (16:52 +0200)]
Use __connman_device_[enable|disable] from set_powered

13 years agoToggle offline mode only if device enablement succeeds
Ying An Deng [Tue, 3 Aug 2010 14:48:33 +0000 (16:48 +0200)]
Toggle offline mode only if device enablement succeeds

13 years agoAdd server ID option support to dhcp-lib
Samuel Ortiz [Tue, 3 Aug 2010 00:30:43 +0000 (02:30 +0200)]
Add server ID option support to dhcp-lib

13 years agoLink VPN nameservers and domains to the VPN service
Samuel Ortiz [Mon, 2 Aug 2010 22:31:37 +0000 (00:31 +0200)]
Link VPN nameservers and domains to the VPN service

13 years agoTrack and report VPN providers states
Samuel Ortiz [Mon, 2 Aug 2010 18:52:35 +0000 (20:52 +0200)]
Track and report VPN providers states

13 years agoUpdate the provider related documentation
Samuel Ortiz [Mon, 2 Aug 2010 18:10:13 +0000 (20:10 +0200)]
Update the provider related documentation

13 years agoRemove the manager Providers property
Samuel Ortiz [Mon, 2 Aug 2010 18:07:33 +0000 (20:07 +0200)]
Remove the manager Providers property

Providers are regular VPN services, no need to differentiate them
anymore.

13 years agoRemove provider PassphraseRequired property
Samuel Ortiz [Mon, 2 Aug 2010 18:06:12 +0000 (20:06 +0200)]
Remove provider PassphraseRequired property

13 years agoSwitch VPN service state to IDLE when being disconnected
Samuel Ortiz [Mon, 2 Aug 2010 17:54:55 +0000 (19:54 +0200)]
Switch VPN service state to IDLE when being disconnected

13 years agoFix test-manager
Samuel Ortiz [Mon, 2 Aug 2010 17:33:39 +0000 (19:33 +0200)]
Fix test-manager

13 years agoUpdate test scripts for the new provider interface
Samuel Ortiz [Mon, 2 Aug 2010 17:24:59 +0000 (19:24 +0200)]
Update test scripts for the new provider interface

13 years agoRemove the provider D-Bus interface
Samuel Ortiz [Mon, 2 Aug 2010 17:11:12 +0000 (19:11 +0200)]
Remove the provider D-Bus interface

All provider properties are now accessible through the provider service.

13 years agoLink providers with services
Samuel Ortiz [Fri, 30 Jul 2010 14:08:44 +0000 (16:08 +0200)]
Link providers with services

With each provider we now have a VPN type service.

13 years agoUnref openconnect provider on disconnect and remove
Samuel Ortiz [Fri, 30 Jul 2010 14:02:44 +0000 (16:02 +0200)]
Unref openconnect provider on disconnect and remove

13 years agoFix potential NULL pointer with DHCP plugin and hostname
Marcel Holtmann [Mon, 2 Aug 2010 16:02:43 +0000 (09:02 -0700)]
Fix potential NULL pointer with DHCP plugin and hostname

13 years agoFix up test tool for web service library
Marcel Holtmann [Sun, 1 Aug 2010 23:42:13 +0000 (16:42 -0700)]
Fix up test tool for web service library

13 years agoAdd some initial support for HTTP to web service library
Marcel Holtmann [Sun, 1 Aug 2010 23:41:44 +0000 (16:41 -0700)]
Add some initial support for HTTP to web service library

13 years agoReport error if lookup fails
Marcel Holtmann [Sun, 1 Aug 2010 23:35:05 +0000 (16:35 -0700)]
Report error if lookup fails

13 years agoFix small function prototype mismatch
Marcel Holtmann [Sun, 1 Aug 2010 22:07:44 +0000 (15:07 -0700)]
Fix small function prototype mismatch

13 years agoAdd simple test tool for web service library
Marcel Holtmann [Sat, 31 Jul 2010 22:16:20 +0000 (15:16 -0700)]
Add simple test tool for web service library

13 years agoAdd skeleton for web service library
Marcel Holtmann [Sat, 31 Jul 2010 22:10:06 +0000 (15:10 -0700)]
Add skeleton for web service library

13 years agoAdd placeholder for PAC file download
Marcel Holtmann [Sat, 31 Jul 2010 21:47:30 +0000 (14:47 -0700)]
Add placeholder for PAC file download

13 years agoFix WPAD issue with empty result list
Marcel Holtmann [Fri, 30 Jul 2010 21:27:46 +0000 (14:27 -0700)]
Fix WPAD issue with empty result list

13 years agoCheck also top-level DNS records for WPAD information
Marcel Holtmann [Fri, 30 Jul 2010 05:58:00 +0000 (22:58 -0700)]
Check also top-level DNS records for WPAD information

13 years agoFix broken printout of proxy auto-configuration test script
Marcel Holtmann [Fri, 30 Jul 2010 05:07:38 +0000 (22:07 -0700)]
Fix broken printout of proxy auto-configuration test script

13 years agoAdd test script for retrieving proxy auto-configuration
Marcel Holtmann [Fri, 30 Jul 2010 05:04:49 +0000 (22:04 -0700)]
Add test script for retrieving proxy auto-configuration

13 years agoAdd decoding of IPv6 properties for get-services test script
Marcel Holtmann [Fri, 30 Jul 2010 04:50:10 +0000 (21:50 -0700)]
Add decoding of IPv6 properties for get-services test script

13 years agoAdd support for property changed signal for domain names
Marcel Holtmann [Fri, 30 Jul 2010 04:31:27 +0000 (21:31 -0700)]
Add support for property changed signal for domain names

13 years agoFix missing export of current domain name
Marcel Holtmann [Fri, 30 Jul 2010 04:19:56 +0000 (21:19 -0700)]
Fix missing export of current domain name

13 years agoClaim ownership of some task from TODO list
Marcel Holtmann [Fri, 30 Jul 2010 04:15:40 +0000 (21:15 -0700)]
Claim ownership of some task from TODO list

13 years agoAdd decoding support for IPv6 properties
Marcel Holtmann [Fri, 30 Jul 2010 03:47:25 +0000 (20:47 -0700)]
Add decoding support for IPv6 properties

13 years agoAdd support for WPAD setting proxy information
Marcel Holtmann [Fri, 30 Jul 2010 03:46:33 +0000 (20:46 -0700)]
Add support for WPAD setting proxy information

13 years agoAdd proxy auto-config support to service and IP config framework
Marcel Holtmann [Fri, 30 Jul 2010 03:46:12 +0000 (20:46 -0700)]
Add proxy auto-config support to service and IP config framework

13 years agoAdd support for proxy auto-configuration D-Bus properties
Marcel Holtmann [Fri, 30 Jul 2010 03:28:32 +0000 (20:28 -0700)]
Add support for proxy auto-configuration D-Bus properties

13 years agoAdd support for retrieving proxy auto-configuration via DNS
Marcel Holtmann [Fri, 30 Jul 2010 03:15:17 +0000 (20:15 -0700)]
Add support for retrieving proxy auto-configuration via DNS

13 years agoAdd function to get nameserver address for a service
Marcel Holtmann [Fri, 30 Jul 2010 03:13:32 +0000 (20:13 -0700)]
Add function to get nameserver address for a service

13 years agoAdd function for retrieving index value from service
Marcel Holtmann [Fri, 30 Jul 2010 02:34:54 +0000 (19:34 -0700)]
Add function for retrieving index value from service

13 years agoUpdate service domain name when connection becomes active
Marcel Holtmann [Fri, 30 Jul 2010 02:26:37 +0000 (19:26 -0700)]
Update service domain name when connection becomes active

13 years agoAdd support for storing service specific domain name
Marcel Holtmann [Fri, 30 Jul 2010 02:25:43 +0000 (19:25 -0700)]
Add support for storing service specific domain name

13 years agoProvide access to hostname and domainname element properties
Marcel Holtmann [Fri, 30 Jul 2010 02:14:20 +0000 (19:14 -0700)]
Provide access to hostname and domainname element properties

13 years agoFix memory leak with IPv6 address and network values
Marcel Holtmann [Fri, 30 Jul 2010 02:07:17 +0000 (19:07 -0700)]
Fix memory leak with IPv6 address and network values

13 years agoStore host and domain names retrieved from DHCP
Marcel Holtmann [Fri, 30 Jul 2010 02:05:51 +0000 (19:05 -0700)]
Store host and domain names retrieved from DHCP

13 years agoRequest proxy auto configuration from DHCP server
Marcel Holtmann [Fri, 30 Jul 2010 02:00:00 +0000 (19:00 -0700)]
Request proxy auto configuration from DHCP server