framework/connectivity/connman.git
13 years agotest-session: Add 'configure' and 'change' command
Daniel Wagner [Thu, 7 Apr 2011 07:51:11 +0000 (09:51 +0200)]
test-session: Add 'configure' and 'change' command

'configure' allows to set all settings which are passed
in during the creation of the session.

'change' allows to change the settings when the session
already exists.

13 years agomanager: Remove the Create/RemoveProfile D-Bus API
Samuel Ortiz [Mon, 4 Apr 2011 19:55:31 +0000 (21:55 +0200)]
manager: Remove the Create/RemoveProfile D-Bus API

Provisioning is done through configuration files, not profiles (naming
could be changed as well). There is no need for multiple profiles files.

13 years agoprofile: Remove useless wrappers
Samuel Ortiz [Mon, 4 Apr 2011 19:14:07 +0000 (21:14 +0200)]
profile: Remove useless wrappers

13 years agoconfiguration: Rename configuration to setting
Samuel Ortiz [Mon, 4 Apr 2011 18:49:25 +0000 (20:49 +0200)]
configuration: Rename configuration to setting

13 years agoTODO update
Samuel Ortiz [Mon, 4 Apr 2011 17:21:27 +0000 (19:21 +0200)]
TODO update

13 years agosession: Use RoamingPolicy instead of RoamingAllowed
Daniel Wagner [Mon, 4 Apr 2011 08:07:07 +0000 (10:07 +0200)]
session: Use RoamingPolicy instead of RoamingAllowed

Allowed are RoamingPolicy "default", "always", "forbidden", "national"
and "international"

13 years agotest: Add test-session script to Makefile
Daniel Wagner [Mon, 4 Apr 2011 07:57:10 +0000 (09:57 +0200)]
test: Add test-session script to Makefile

13 years agodevice: Set scan interval to 0 if background scaniing is disabled
Samuel Ortiz [Fri, 1 Apr 2011 23:42:45 +0000 (01:42 +0200)]
device: Set scan interval to 0 if background scaniing is disabled

13 years agoconfiguration: Add a main.conf example
Samuel Ortiz [Fri, 1 Apr 2011 23:40:48 +0000 (01:40 +0200)]
configuration: Add a main.conf example

13 years agomain: Initial configuration file support
Samuel Ortiz [Fri, 1 Apr 2011 23:35:28 +0000 (01:35 +0200)]
main: Initial configuration file support

13 years agodevice: No need to save the scan interval
Samuel Ortiz [Fri, 1 Apr 2011 19:10:02 +0000 (21:10 +0200)]
device: No need to save the scan interval

Since the scan interval can no longer be set through D-Bus, there is no
need to save it anymore.

13 years agodevice: Reorder the scan_interval setting switch
Samuel Ortiz [Fri, 1 Apr 2011 19:06:33 +0000 (21:06 +0200)]
device: Reorder the scan_interval setting switch

All scan interval are set to 0, except for WiFi.

13 years agotest: Add identity response support to simple-agent
Henri Bragge [Thu, 31 Mar 2011 12:49:33 +0000 (15:49 +0300)]
test: Add identity response support to simple-agent

Support also responding with arbitrary combination of parameters,
instead of only one property at a time.

13 years agoagent: Implement EAP identity and passphrase query
Henri Bragge [Thu, 31 Mar 2011 12:49:32 +0000 (15:49 +0300)]
agent: Implement EAP identity and passphrase query

EAP credentials will be queried whenever connecting to an 802.1X network
unless EAP-TLS is used OR if service is provisioned via .config file.

Besides adding Identity field into the API, this patch also removes the
restriction to receive value for only one field per response. Now both
Identity and Passphrase can be received in one call.

13 years agoservice: Add function to get phase2 method
Henri Bragge [Thu, 31 Mar 2011 12:49:31 +0000 (15:49 +0300)]
service: Add function to get phase2 method

13 years agoservice: Add function to set identity
Henri Bragge [Thu, 31 Mar 2011 12:49:30 +0000 (15:49 +0300)]
service: Add function to set identity

13 years agodoc: Add EAP login support in Agent API
Henri Bragge [Thu, 31 Mar 2011 12:49:29 +0000 (15:49 +0300)]
doc: Add EAP login support in Agent API

13 years agogweb: Add port string to getaddrinfo
Samuel Ortiz [Fri, 1 Apr 2011 14:59:44 +0000 (16:59 +0200)]
gweb: Add port string to getaddrinfo

Without doing so, the socket address returned will have its port field
uninitialized.

Fixes BMC#14753
Fixes BMC#15026

13 years agotest: Add session test script
Daniel Wagner [Thu, 31 Mar 2011 08:11:52 +0000 (10:11 +0200)]
test: Add session test script

13 years agosession: Add dis/connect_session()
Daniel Wagner [Thu, 31 Mar 2011 08:02:37 +0000 (10:02 +0200)]
session: Add dis/connect_session()

Furthermore add notify handler functions.

13 years agodbus: Add connman_dbus_setting_changed_*()
Daniel Wagner [Thu, 31 Mar 2011 08:02:36 +0000 (10:02 +0200)]
dbus: Add connman_dbus_setting_changed_*()

13 years agosession: Hook into notifier session changes
Daniel Wagner [Thu, 31 Mar 2011 08:02:35 +0000 (10:02 +0200)]
session: Hook into notifier session changes

13 years agonotify: Add ipconfig notifiers
Daniel Wagner [Thu, 31 Mar 2011 08:02:34 +0000 (10:02 +0200)]
notify: Add ipconfig notifiers

13 years agonotify: Add service state notifiers
Daniel Wagner [Thu, 31 Mar 2011 08:02:33 +0000 (10:02 +0200)]
notify: Add service state notifiers

13 years agoservice: Add __connman_service_connect_session()
Daniel Wagner [Thu, 31 Mar 2011 08:02:32 +0000 (10:02 +0200)]
service: Add __connman_service_connect_session()

13 years agoservice: Add service setters/getters
Daniel Wagner [Thu, 31 Mar 2011 08:02:31 +0000 (10:02 +0200)]
service: Add service setters/getters

13 years agoservice: Add __connman_service_get_list()
Daniel Wagner [Thu, 31 Mar 2011 08:02:30 +0000 (10:02 +0200)]
service: Add __connman_service_get_list()

In order to get a list of services which can than be process further
in session.c, service.c has to populate a list of services.

13 years agosession: Add session D-Bus settings handlers
Daniel Wagner [Thu, 31 Mar 2011 08:02:29 +0000 (10:02 +0200)]
session: Add session D-Bus settings handlers

13 years agoservice: Remove obsolete __connman_service_connect_type
Daniel Wagner [Thu, 31 Mar 2011 08:02:28 +0000 (10:02 +0200)]
service: Remove obsolete __connman_service_connect_type

13 years agosession: Refactor session API
Daniel Wagner [Thu, 31 Mar 2011 10:36:12 +0000 (12:36 +0200)]
session: Refactor session API

Refactor the D-Bus API of the session according the documentation.
All function and properties are only empty stubs.

13 years agomanager: Add session mode
Daniel Wagner [Thu, 31 Mar 2011 08:02:26 +0000 (10:02 +0200)]
manager: Add session mode

This also disables the auto connect feature.

13 years agoservice: Add __connman_service_disconnect_all()
Daniel Wagner [Thu, 31 Mar 2011 08:02:25 +0000 (10:02 +0200)]
service: Add __connman_service_disconnect_all()

13 years agosession: Update documentation
Marcel Holtmann [Thu, 31 Mar 2011 08:02:24 +0000 (10:02 +0200)]
session: Update documentation

13 years agoRelease 0.72
Marcel Holtmann [Wed, 30 Mar 2011 11:26:26 +0000 (13:26 +0200)]
Release 0.72

13 years agoofono: Check for info pointer in set_active_reply
Mohamed Abbas [Tue, 29 Mar 2011 22:20:03 +0000 (15:20 -0700)]
ofono: Check for info pointer in set_active_reply

When ofono_disconnect() is being called before receiving the set_active()
reply back, info will be NULL.

Fixes BMC#14518

13 years agobuild: Check for dbus_connection_can_send_type function
Marcel Holtmann [Mon, 28 Mar 2011 17:25:18 +0000 (19:25 +0200)]
build: Check for dbus_connection_can_send_type function

13 years agobuild: Improve D-Bus checks for cross-compilation
Marcel Holtmann [Mon, 28 Mar 2011 17:23:48 +0000 (19:23 +0200)]
build: Improve D-Bus checks for cross-compilation

13 years agoprovider: Do not deference NULL pointer
Daniel Wagner [Mon, 28 Mar 2011 10:04:36 +0000 (12:04 +0200)]
provider: Do not deference NULL pointer

Fixes BMC#14940

13 years agoservice: Return 6to4 tunnel status to dbus caller.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:19 +0000 (15:03 +0200)]
service: Return 6to4 tunnel status to dbus caller.

13 years ago6to4: Check if the 6to4 tunnel is active or not.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:18 +0000 (15:03 +0200)]
6to4: Check if the 6to4 tunnel is active or not.

13 years agoservice: Create/remove 6to4 tunnel.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:17 +0000 (15:03 +0200)]
service: Create/remove 6to4 tunnel.

13 years ago6to4: Check the connectivity via tunnel after creating it.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:16 +0000 (15:03 +0200)]
6to4: Check the connectivity via tunnel after creating it.

13 years ago6to4: Add 6to4 tunnel support.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:15 +0000 (15:03 +0200)]
6to4: Add 6to4 tunnel support.

Netlink support routines taken from iproute2 package.
Iproute2 source code can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git

13 years agogweb: Add support for connecting to IPv6 host.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:14 +0000 (15:03 +0200)]
gweb: Add support for connecting to IPv6 host.

13 years agoinet: Add routines to send IPv6 router solicitation message.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:13 +0000 (15:03 +0200)]
inet: Add routines to send IPv6 router solicitation message.

IPv6 router solicitation handling is from MIPL project.
Original code can be found at
git://linux-ipv6.org/gitroot/mipv6-daemon.git
and
http://www.linux-ipv6.org/gitweb/gitweb.cgi?p=gitroot/mipv6-daemon.git;a=blob;f=src/ndisc.c

13 years agoinet: MTU and tunnel setup functions added.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:12 +0000 (15:03 +0200)]
inet: MTU and tunnel setup functions added.

13 years agodoc: Add description about 6to4 tunnelling.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:11 +0000 (15:03 +0200)]
doc: Add description about 6to4 tunnelling.

13 years agodhcp: Fix memory leak
Daniel Wagner [Wed, 23 Mar 2011 17:33:34 +0000 (18:33 +0100)]
dhcp: Fix memory leak

And be a bit more clever when there is new dhcp lease. Only propagate
real changes in the configuration for nameservers, timeserver and PAC.

13 years agoservice: Send D-Bus reply for Manager.ConnectService when service is ready
Samuel Ortiz [Wed, 23 Mar 2011 11:04:14 +0000 (12:04 +0100)]
service: Send D-Bus reply for Manager.ConnectService when service is ready

The D-Bus reply for Manager.ConnectService is currently immediatly
returning the service path. It should still return it, but only after the
service is ready or failed to connect.

Fixes BMC#14798
Fixes BMC#14808

13 years agodhcp: Reset IP settings upon changes
Samuel Ortiz [Tue, 22 Mar 2011 20:55:30 +0000 (21:55 +0100)]
dhcp: Reset IP settings upon changes

The IP settings should not change when a DHCP renewal gives the same
configuration.

13 years agoipconfig: Clear ipconfig address when removing it
Samuel Ortiz [Tue, 22 Mar 2011 20:41:23 +0000 (21:41 +0100)]
ipconfig: Clear ipconfig address when removing it

13 years agodhcp: Remove unused net string
Samuel Ortiz [Thu, 17 Mar 2011 19:56:21 +0000 (20:56 +0100)]
dhcp: Remove unused net string

13 years agodhcp: do not overwrite DNS servers
Lucas De Marchi [Mon, 21 Mar 2011 16:25:57 +0000 (13:25 -0300)]
dhcp: do not overwrite DNS servers

The counter 'i' was not being incremented, making secondary DNS servers
to overwrite the first ones.

13 years agoservice: Destroy counter hash in service_free
Daniel Wagner [Mon, 21 Mar 2011 15:15:06 +0000 (16:15 +0100)]
service: Destroy counter hash in service_free

13 years agotimeserver: Fix memory leak
Daniel Wagner [Thu, 17 Mar 2011 13:25:40 +0000 (14:25 +0100)]
timeserver: Fix memory leak

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agoinet: Fix inconsistent use of strdup and g_free
Daniel Wagner [Thu, 17 Mar 2011 13:25:39 +0000 (14:25 +0100)]
inet: Fix inconsistent use of strdup and g_free

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agovpn: Fix fd leak
Daniel Wagner [Thu, 17 Mar 2011 13:25:38 +0000 (14:25 +0100)]
vpn: Fix fd leak

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agovpn: Fix possible null pointer dereference
Daniel Wagner [Thu, 17 Mar 2011 13:25:37 +0000 (14:25 +0100)]
vpn: Fix possible null pointer dereference

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agogresolv: Fix memory leak
Daniel Wagner [Thu, 17 Mar 2011 13:25:35 +0000 (14:25 +0100)]
gresolv: Fix memory leak

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agotist: Fix initializing of variable
Samuel Ortiz [Thu, 17 Mar 2011 16:37:20 +0000 (17:37 +0100)]
tist: Fix initializing of variable

sizeof(char []) is a pointer size.

Reported by: DJ Cozatt <ygdrasil@comcast.net>

13 years agoRelease 0.71
Marcel Holtmann [Thu, 17 Mar 2011 05:58:52 +0000 (22:58 -0700)]
Release 0.71

13 years agoofono: Free network_info
Daniel Wagner [Tue, 15 Mar 2011 14:02:08 +0000 (15:02 +0100)]
ofono: Free network_info

The network_info data structure is not freed. Also the
error path does not handle the freeing of the data structure
correctly.

Reported by: Henri Bragge <henri.bragge@ixonos.com>

13 years agoAUTHORS: Mention Sébastien's contributions
Samuel Ortiz [Fri, 11 Mar 2011 20:22:19 +0000 (21:22 +0100)]
AUTHORS: Mention Sébastien's contributions

13 years agogweb: Add user_agent_profile field in http header
Sébastien Bianti [Wed, 2 Mar 2011 10:21:21 +0000 (11:21 +0100)]
gweb: Add user_agent_profile field in http header

13 years agopacrunner: Pass proper namesevers array pointer
Samuel Ortiz [Fri, 11 Mar 2011 02:37:08 +0000 (03:37 +0100)]
pacrunner: Pass proper namesevers array pointer

And not the pointer's address.

Fixes BMC #14242

13 years agodhcp: Stop pending gdhcp client requests
Daniel Wagner [Thu, 10 Mar 2011 09:43:43 +0000 (10:43 +0100)]
dhcp: Stop pending gdhcp client requests

When remove_network is called there could be still a pending
dhcp request in the dhcp client.

Fixes BMC#13947

13 years agotethering: Using /proc/sys/net/bridge to detect the support of bridge
Martin Xu [Wed, 9 Mar 2011 08:16:49 +0000 (16:16 +0800)]
tethering: Using /proc/sys/net/bridge to detect the support of bridge

If bridge is built in kernel, /sys/module/bridge can not be used to detect
the support of bridge.

13 years agotethering: Add wifi interface to bridge after carrier on
Martin Xu [Wed, 9 Mar 2011 08:16:48 +0000 (16:16 +0800)]
tethering: Add wifi interface to bridge after carrier on

When changing wifi from STA to AP the interface needs to be closed
and then opened. Only after the interface is opened and detected
carrier, the interface can be added to bridge.

13 years agotist: Initial plugin implementation
Samuel Ortiz [Thu, 10 Mar 2011 22:33:06 +0000 (23:33 +0100)]
tist: Initial plugin implementation

This is a plugin to support TI's shared transport driver.

13 years agogdbus: Unconditionally remove D-Bus timeouts
Grant Erickson [Thu, 3 Mar 2011 18:45:06 +0000 (10:45 -0800)]
gdbus: Unconditionally remove D-Bus timeouts

Address an issue in which the daemon incorrectly handles D-Bus main
loop timeouts by only removing timeouts that are not enabled when
D-Bus requests a timeout removal.

13 years agostats: Fix compiler warning on 64-bit machines
Marcel Holtmann [Fri, 4 Mar 2011 13:11:31 +0000 (05:11 -0800)]
stats: Fix compiler warning on 64-bit machines

13 years agosession: Pass struct connman_session to callback
Gustavo F. Padovan [Fri, 4 Mar 2011 00:06:33 +0000 (21:06 -0300)]
session: Pass struct connman_session to callback

13 years agostats: Add an informational message for mmap failures
Grant Erickson [Thu, 3 Mar 2011 18:44:57 +0000 (10:44 -0800)]
stats: Add an informational message for mmap failures

Added an informational message when mmap fails with EINVAL in
stats_file_remap.

13 years agostats: Avoid double-frees on a failed mapping
Grant Erickson [Thu, 3 Mar 2011 18:44:46 +0000 (10:44 -0800)]
stats: Avoid double-frees on a failed mapping

Added debugging statements and ensure, following calls to g_free, that
the statistics file name field is set to NULL to ensure that a failed
file mapping and a subsequent call to stats_free doesn't fault when
trying to double-free it.

13 years agodevice: Remove connman_device_set_connected from device.h
Samuel Ortiz [Thu, 3 Mar 2011 16:57:59 +0000 (17:57 +0100)]
device: Remove connman_device_set_connected from device.h

The routine is not even implemented.

13 years agobluetooth: Set service state to IDLE when PAN connection fails
Samuel Ortiz [Thu, 3 Mar 2011 16:56:09 +0000 (17:56 +0100)]
bluetooth: Set service state to IDLE when PAN connection fails

13 years agoprofile: Ignore malformed profiles
Grant Erickson [Wed, 2 Mar 2011 16:24:32 +0000 (17:24 +0100)]
profile: Ignore malformed profiles

Ignore malformed profiles. That is, if there is no non-extension
portion to the file (i.e. it is precisely named .profile), then
ignore it. Passing such files to create_profile will result in
a SIGABRT.

13 years agoipconfig: Catch IPv6 default route creation and deletion.
Jukka Rissanen [Fri, 18 Feb 2011 13:48:56 +0000 (15:48 +0200)]
ipconfig: Catch IPv6 default route creation and deletion.

13 years agortnl: Catch IPv6 route netlink messages.
Jukka Rissanen [Fri, 18 Feb 2011 13:48:55 +0000 (15:48 +0200)]
rtnl: Catch IPv6 route netlink messages.

13 years agoofono: Remove set_connected forward declaration
Samuel Ortiz [Wed, 2 Mar 2011 15:45:07 +0000 (16:45 +0100)]
ofono: Remove set_connected forward declaration

13 years agoofono: Connect when context activation is requested
Henri Bragge [Wed, 2 Mar 2011 15:43:35 +0000 (16:43 +0100)]
ofono: Connect when context activation is requested

ConnMan should connect the corresponding network/service after a
successful response to context activation request. If the context was
already active, connecting has to happen this way instead of waiting for
active property going up (it already is up).

In case the context was inactive before activation, it will not have
network index yet and connecting will happen later when activation is
ready.

This patch removes the reply handler for context inactivation because
it would have no other use than logging.

13 years agoofono: Do not connect autonomously activated contexts
Henri Bragge [Wed, 2 Mar 2011 15:42:04 +0000 (16:42 +0100)]
ofono: Do not connect autonomously activated contexts

When activated context is found, do not connect to it unless requested
to do so.

13 years agonetwork: Export connman_network_get_connecting() to plugins
Henri Bragge [Tue, 1 Mar 2011 15:20:25 +0000 (17:20 +0200)]
network: Export connman_network_get_connecting() to plugins

13 years agoprovider: Initial IPv6 support
Samuel Ortiz [Fri, 25 Feb 2011 19:51:57 +0000 (20:51 +0100)]
provider: Initial IPv6 support

13 years agoconnection: Do not move to DISCONNECT when removing a gateway
Samuel Ortiz [Fri, 25 Feb 2011 19:49:42 +0000 (20:49 +0100)]
connection: Do not move to DISCONNECT when removing a gateway

The state change should be handled by the caller.

13 years agoopenconnect: Support IPv6 settings
Samuel Ortiz [Fri, 25 Feb 2011 18:36:33 +0000 (19:36 +0100)]
openconnect: Support IPv6 settings

13 years agoservice: Add a generic ipconfig selection routine
Samuel Ortiz [Fri, 25 Feb 2011 18:31:04 +0000 (19:31 +0100)]
service: Add a generic ipconfig selection routine

13 years agonetwork: Remove gateway when network disconnects
Samuel Ortiz [Fri, 25 Feb 2011 14:32:56 +0000 (15:32 +0100)]
network: Remove gateway when network disconnects

13 years agoelement: Remove IPV4 element
Daniel Wagner [Fri, 25 Feb 2011 13:51:14 +0000 (14:51 +0100)]
element: Remove IPV4 element

ipv4.c is also removed.

13 years agovpnc: Port to the new provider APIs
Samuel Ortiz [Fri, 25 Feb 2011 13:44:06 +0000 (14:44 +0100)]
vpnc: Port to the new provider APIs

13 years agoprovider: Remove IPv4 element registration
Daniel Wagner [Fri, 25 Feb 2011 13:37:34 +0000 (14:37 +0100)]
provider: Remove IPv4 element registration

13 years agoipconfig: Remove __connman_ipconfig_set_element_ipv6_gateway
Samuel Ortiz [Fri, 25 Feb 2011 00:04:28 +0000 (01:04 +0100)]
ipconfig: Remove __connman_ipconfig_set_element_ipv6_gateway

This routine is unused.

13 years agoipconfig: Remove connman_ipconfig_bind
Samuel Ortiz [Fri, 25 Feb 2011 00:02:23 +0000 (01:02 +0100)]
ipconfig: Remove connman_ipconfig_bind

This routine is unused.

13 years agonetwork: Fix nameserver setting routine
Samuel Ortiz [Thu, 24 Feb 2011 22:59:09 +0000 (23:59 +0100)]
network: Fix nameserver setting routine

13 years agoofono: Remove IPv4 element registration
Daniel Wagner [Thu, 24 Feb 2011 15:23:34 +0000 (16:23 +0100)]
ofono: Remove IPv4 element registration

13 years agoservice: Do not always reset the IPv4 state on error clearing
Samuel Ortiz [Thu, 24 Feb 2011 15:09:50 +0000 (16:09 +0100)]
service: Do not always reset the IPv4 state on error clearing

When clearing the service error from the oFono plugin, moving the IPv6
state to IDLE can trigger an automatic connection and thus move the IPv4
to the ASSOCIATING state.

13 years agoipconfig: IPv4 gateway can be NULL
Samuel Ortiz [Thu, 24 Feb 2011 14:28:00 +0000 (15:28 +0100)]
ipconfig: IPv4 gateway can be NULL

For point to point interfaces, our IPv4 gateway will be NULL.

13 years agonetwork: Fix the manual setting case
Samuel Ortiz [Thu, 24 Feb 2011 01:47:00 +0000 (02:47 +0100)]
network: Fix the manual setting case

13 years agoelement: Remove DHCP element
Daniel Wagner [Thu, 24 Feb 2011 00:46:29 +0000 (01:46 +0100)]
element: Remove DHCP element

13 years agoipconfig: Split ipconfig_set_gateway()
Samuel Ortiz [Wed, 23 Feb 2011 20:05:39 +0000 (21:05 +0100)]
ipconfig: Split ipconfig_set_gateway()

ipconfig_set_gateway() sets the gateway pointer while gateway_add() sets
the route.