Jukka Rissanen [Fri, 25 Mar 2011 13:03:17 +0000 (15:03 +0200)]
service: Create/remove 6to4 tunnel.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:16 +0000 (15:03 +0200)]
6to4: Check the connectivity via tunnel after creating it.
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
Jukka Rissanen [Fri, 25 Mar 2011 13:03:14 +0000 (15:03 +0200)]
gweb: Add support for connecting to IPv6 host.
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
Jukka Rissanen [Fri, 25 Mar 2011 13:03:12 +0000 (15:03 +0200)]
inet: MTU and tunnel setup functions added.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:11 +0000 (15:03 +0200)]
doc: Add description about 6to4 tunnelling.
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.
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
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.
Samuel Ortiz [Tue, 22 Mar 2011 20:41:23 +0000 (21:41 +0100)]
ipconfig: Clear ipconfig address when removing it
Samuel Ortiz [Thu, 17 Mar 2011 19:56:21 +0000 (20:56 +0100)]
dhcp: Remove unused net string
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.
Daniel Wagner [Mon, 21 Mar 2011 15:15:06 +0000 (16:15 +0100)]
service: Destroy counter hash in service_free
Daniel Wagner [Thu, 17 Mar 2011 13:25:40 +0000 (14:25 +0100)]
timeserver: Fix memory leak
Reported by: DJ Cozatt <ygdrasil@comcast.net>
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>
Daniel Wagner [Thu, 17 Mar 2011 13:25:38 +0000 (14:25 +0100)]
vpn: Fix fd leak
Reported by: DJ Cozatt <ygdrasil@comcast.net>
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>
Daniel Wagner [Thu, 17 Mar 2011 13:25:35 +0000 (14:25 +0100)]
gresolv: Fix memory leak
Reported by: DJ Cozatt <ygdrasil@comcast.net>
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>
Marcel Holtmann [Thu, 17 Mar 2011 05:58:52 +0000 (22:58 -0700)]
Release 0.71
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>
Samuel Ortiz [Fri, 11 Mar 2011 20:22:19 +0000 (21:22 +0100)]
AUTHORS: Mention Sébastien's contributions
Sébastien Bianti [Wed, 2 Mar 2011 10:21:21 +0000 (11:21 +0100)]
gweb: Add user_agent_profile field in http header
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
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
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.
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.
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.
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.
Marcel Holtmann [Fri, 4 Mar 2011 13:11:31 +0000 (05:11 -0800)]
stats: Fix compiler warning on 64-bit machines
Gustavo F. Padovan [Fri, 4 Mar 2011 00:06:33 +0000 (21:06 -0300)]
session: Pass struct connman_session to callback
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.
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.
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.
Samuel Ortiz [Thu, 3 Mar 2011 16:56:09 +0000 (17:56 +0100)]
bluetooth: Set service state to IDLE when PAN connection fails
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.
Jukka Rissanen [Fri, 18 Feb 2011 13:48:56 +0000 (15:48 +0200)]
ipconfig: Catch IPv6 default route creation and deletion.
Jukka Rissanen [Fri, 18 Feb 2011 13:48:55 +0000 (15:48 +0200)]
rtnl: Catch IPv6 route netlink messages.
Samuel Ortiz [Wed, 2 Mar 2011 15:45:07 +0000 (16:45 +0100)]
ofono: Remove set_connected forward declaration
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.
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.
Henri Bragge [Tue, 1 Mar 2011 15:20:25 +0000 (17:20 +0200)]
network: Export connman_network_get_connecting() to plugins
Samuel Ortiz [Fri, 25 Feb 2011 19:51:57 +0000 (20:51 +0100)]
provider: Initial IPv6 support
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.
Samuel Ortiz [Fri, 25 Feb 2011 18:36:33 +0000 (19:36 +0100)]
openconnect: Support IPv6 settings
Samuel Ortiz [Fri, 25 Feb 2011 18:31:04 +0000 (19:31 +0100)]
service: Add a generic ipconfig selection routine
Samuel Ortiz [Fri, 25 Feb 2011 14:32:56 +0000 (15:32 +0100)]
network: Remove gateway when network disconnects
Daniel Wagner [Fri, 25 Feb 2011 13:51:14 +0000 (14:51 +0100)]
element: Remove IPV4 element
ipv4.c is also removed.
Samuel Ortiz [Fri, 25 Feb 2011 13:44:06 +0000 (14:44 +0100)]
vpnc: Port to the new provider APIs
Daniel Wagner [Fri, 25 Feb 2011 13:37:34 +0000 (14:37 +0100)]
provider: Remove IPv4 element registration
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.
Samuel Ortiz [Fri, 25 Feb 2011 00:02:23 +0000 (01:02 +0100)]
ipconfig: Remove connman_ipconfig_bind
This routine is unused.
Samuel Ortiz [Thu, 24 Feb 2011 22:59:09 +0000 (23:59 +0100)]
network: Fix nameserver setting routine
Daniel Wagner [Thu, 24 Feb 2011 15:23:34 +0000 (16:23 +0100)]
ofono: Remove IPv4 element registration
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.
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.
Samuel Ortiz [Thu, 24 Feb 2011 01:47:00 +0000 (02:47 +0100)]
network: Fix the manual setting case
Daniel Wagner [Thu, 24 Feb 2011 00:46:29 +0000 (01:46 +0100)]
element: Remove DHCP element
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.
Samuel Ortiz [Wed, 23 Feb 2011 19:38:33 +0000 (20:38 +0100)]
ipconfig: Rename ipconfig_set/clear_address routines
Daniel Wagner [Wed, 23 Feb 2011 19:12:06 +0000 (20:12 +0100)]
ipconfig: Fix IP setters
Daniel Wagner [Wed, 23 Feb 2011 18:57:08 +0000 (19:57 +0100)]
provider: Add IP setters
Daniel Wagner [Wed, 23 Feb 2011 18:23:11 +0000 (19:23 +0100)]
network: Add IP setters
Samuel Ortiz [Wed, 23 Feb 2011 18:15:07 +0000 (19:15 +0100)]
service: Add a nameserver clearing routine
Daniel Wagner [Wed, 23 Feb 2011 17:53:05 +0000 (18:53 +0100)]
service: Add timeserver and pac setters
Samuel Ortiz [Wed, 23 Feb 2011 11:41:21 +0000 (12:41 +0100)]
ipconfig: Save IPv6 privacy setting
Daniel Wagner [Tue, 22 Feb 2011 16:17:48 +0000 (17:17 +0100)]
ipconfig: Only save FIXED & MANUAL IP configuraiton
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.
Marcel Holtmann [Tue, 22 Feb 2011 08:25:48 +0000 (00:25 -0800)]
Release 0.70
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
Samuel Ortiz [Mon, 21 Feb 2011 23:48:58 +0000 (00:48 +0100)]
service: Do not duplicate nameserver entries
Samuel Ortiz [Mon, 21 Feb 2011 20:32:54 +0000 (21:32 +0100)]
wifi: Remove interfaces from the bridge when disabling tethering
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.
Jukka Rissanen [Mon, 21 Feb 2011 15:40:24 +0000 (17:40 +0200)]
test: Enable or disable IPv6 privacy extension
Jukka Rissanen [Mon, 21 Feb 2011 15:40:23 +0000 (17:40 +0200)]
ipconfig: Support IPv6 privacy extension for autoconf addresses
Jukka Rissanen [Mon, 21 Feb 2011 15:40:22 +0000 (17:40 +0200)]
doc: Add description about IPv6 privacy setting
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.
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
Samuel Ortiz [Fri, 18 Feb 2011 14:16:31 +0000 (15:16 +0100)]
test: Remove APN support from test-connman
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.
Henri Bragge [Thu, 17 Feb 2011 11:51:25 +0000 (13:51 +0200)]
ofono: Fix memory leak in network activation
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.
Marcel Holtmann [Thu, 17 Feb 2011 06:00:35 +0000 (22:00 -0800)]
portal: Print region information if available
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
Samuel Ortiz [Wed, 16 Feb 2011 23:17:03 +0000 (00:17 +0100)]
ipv4: Add domainame before moving to READY state
Jukka Rissanen [Wed, 16 Feb 2011 13:07:48 +0000 (15:07 +0200)]
network: Remove unused parameter from autoconf_ipv6_set()
Alok Barsode [Wed, 16 Feb 2011 09:03:30 +0000 (11:03 +0200)]
technology: Rename __connman_technology_[enable|disable]_device
Samuel Ortiz [Wed, 16 Feb 2011 00:46:02 +0000 (01:46 +0100)]
service: Remove unused mcc and mnc fields
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.
Marcel Holtmann [Wed, 16 Feb 2011 00:14:46 +0000 (16:14 -0800)]
gweb: Avoid forward declarations in resolver code
Marcel Holtmann [Wed, 16 Feb 2011 00:11:12 +0000 (16:11 -0800)]
gweb: Some coding style cleanup on resolver code
Samuel Ortiz [Tue, 15 Feb 2011 16:15:03 +0000 (17:15 +0100)]
service: Compare combined states in service_compare()
Daniel Wagner [Tue, 15 Feb 2011 15:45:23 +0000 (16:45 +0100)]
connection: Remove connection element
Daniel Wagner [Tue, 15 Feb 2011 14:51:51 +0000 (15:51 +0100)]
ipconfig: Add ipaddress setters/getters
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).
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.
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.
Jukka Rissanen [Fri, 11 Feb 2011 13:22:53 +0000 (15:22 +0200)]
network: IPv6 must go through disconnect state before idle
Samuel Ortiz [Fri, 11 Feb 2011 12:08:49 +0000 (13:08 +0100)]
network: Back to IDLE when network is not connected