Leena Gunda [Thu, 30 Dec 2010 06:43:41 +0000 (12:13 +0530)]
Fix memory leaks in iptables library
Fixes BMC#11830
Leena Gunda [Wed, 29 Dec 2010 10:39:25 +0000 (16:09 +0530)]
Free WiFi network strings in network_destruct
Fixes BMC#11815
Yang Ruirui [Wed, 29 Dec 2010 07:12:15 +0000 (23:12 -0800)]
Building fix about implicit declaration of strnlen
I got build failing as below:
cc1: warnings being treated as errors
gdhcp/client.c: In function ‘alloc_dhcp_option’:
gdhcp/client.c:1455: error: implicit declaration of function ‘strnlen’
define _GNU_SOURCE fixes this problem.
Yang Ruirui [Wed, 29 Dec 2010 07:12:00 +0000 (23:12 -0800)]
fix glib dependency
src/stats.c and src/tools/stats-tool.c use glib function g_mkstemp_full
g_mkstemp_full comes since GLib 2.21.6, see following changelog:
http://linuxtesting.org/upstream-tracker/changelogs/glib/2.21.6/changelog.html
So here fix the dependency of glib in configure.ac to >=2.22
Leena Gunda [Wed, 29 Dec 2010 05:55:14 +0000 (11:25 +0530)]
Fix Valgrind Invalid Read error while removing gsupplicant interface
Leena Gunda [Wed, 29 Dec 2010 05:31:08 +0000 (11:01 +0530)]
Free gsupplicant network path when removing network
Leena Gunda [Mon, 27 Dec 2010 08:44:36 +0000 (14:14 +0530)]
gsupplicant network_path not freed while removing interface
Below is patch for:
http://bugs.meego.com/show_bug.cgi?id=11763
Free the network path of the connected WiFi when removing the interface.
Marcel Holtmann [Tue, 28 Dec 2010 17:39:20 +0000 (09:39 -0800)]
portal: Check status and print client IP and country details
Mohamed Abbas [Mon, 27 Dec 2010 22:17:40 +0000 (14:17 -0800)]
Add g_web_result_get_header support.
Add all http response header to hash table and allow
user to get these header values.
Header with same key will be replaced by last header value.
Marcel Holtmann [Sun, 26 Dec 2010 19:46:02 +0000 (11:46 -0800)]
Fix Leena's email address
Marcel Holtmann [Sat, 25 Dec 2010 01:48:25 +0000 (17:48 -0800)]
Release 0.65
Mohamed Abbas [Thu, 23 Dec 2010 21:28:47 +0000 (13:28 -0800)]
wifi: Check for passphrase being not NULL before calling strlen
It seems strlen(passphrase) was crashing on NULL passphrase.
Leena Gunda [Thu, 23 Dec 2010 18:07:55 +0000 (19:07 +0100)]
wifi: Remove network on BSSRemoved signal reception
Fixes BMC#11561
Marcel Holtmann [Thu, 23 Dec 2010 17:39:20 +0000 (18:39 +0100)]
rtnl: Call technology_add_interface() only once
Samuel Ortiz [Thu, 23 Dec 2010 15:36:46 +0000 (16:36 +0100)]
network: Remove unused network_set_passphrase routine
Samuel Ortiz [Thu, 23 Dec 2010 15:26:41 +0000 (16:26 +0100)]
wifi: Track wpa supplicant state
If wpa supplicant switch from SCANNING to DISCONNECTED, setting the
network values to FALSE could potentially kill an association in progress.
Samuel Ortiz [Thu, 23 Dec 2010 15:05:37 +0000 (16:05 +0100)]
wifi: Zero length passphrase set to NULL
Some UI give a non NULL but zero length passphrase string and wpa
supplicant doesn't handle that.
Samuel Ortiz [Thu, 23 Dec 2010 12:05:32 +0000 (13:05 +0100)]
service: Don't clear ipconfig layers if network disconnection failed
Samuel Ortiz [Thu, 23 Dec 2010 11:57:16 +0000 (12:57 +0100)]
gsupplicant: Remove network even if disconnect failed
If a connection is in progress but is cancelled before wpa supplicant
reached the ASSOCIATING phase, removing the network is the only way to
prevent it from continuing the association.
Mohamed Abbas [Thu, 23 Dec 2010 09:26:39 +0000 (10:26 +0100)]
device: Do not use the disconnected flag for auto connection
The whole auto connection process is now handled from
service_auto_connect().
Mohamed Abbas [Thu, 23 Dec 2010 09:24:25 +0000 (10:24 +0100)]
service: Return connecting status while idle
The auto connection decision is then all let to service_auto_connect() as
it can now handle the connecting while idle decision.
Mohamed Abbas [Wed, 22 Dec 2010 19:58:02 +0000 (11:58 -0800)]
service: Avoid autoconnect from scan
If we are scanning then don't try to run autoconnect while
we are adding network from scan, at the end of scan auto
connect will be called.
Mohamed Abbas [Mon, 20 Dec 2010 19:07:33 +0000 (11:07 -0800)]
wifi: Dont start new connection until disassociation completes
Make sure disconnect is completed before start new connection
otherwise we will disconnect the new network when we receive
DISCONNECT signal from supplicant.
Samuel Ortiz [Wed, 22 Dec 2010 19:45:18 +0000 (20:45 +0100)]
wifi: Remove misleading error string
Since wpa supplicant sends the interface addition signal before calling
the interface creation callback, interface_added could perfectly be called
with the wifi pointer not set yet.
Samuel Ortiz [Wed, 22 Dec 2010 17:44:56 +0000 (18:44 +0100)]
gsupplicant: Remove get_results warning
This is normal operation, the interface is created at from get_results()
if it doesn't exist yet.
Fixes BMC#11066
Samuel Ortiz [Wed, 22 Dec 2010 16:09:24 +0000 (17:09 +0100)]
wifi: Use CONNMAN_SUPPLICANT_DEBUG for debugging
Instead of CONNMAN_GSUPPLICANT_DEBUG, for consistency sake.
Samuel Ortiz [Wed, 22 Dec 2010 16:08:35 +0000 (17:08 +0100)]
wifi: Set wifi plugin priority to DEFAULT
And the legacy one to LOW.
Samuel Ortiz [Wed, 22 Dec 2010 15:37:16 +0000 (16:37 +0100)]
ipconfig: Check for ipconfig pointer before getting ops_data
Mohamed Abbas [Wed, 22 Dec 2010 15:35:48 +0000 (16:35 +0100)]
ipconfig: Remove the right ipconfig pointer from the ipconfig list
Samuel Ortiz [Wed, 22 Dec 2010 14:53:18 +0000 (15:53 +0100)]
wifi: Switch to being the default wifi plugin
The gsupplicant based plugin is now the default wifi plugin.
Samuel Ortiz [Wed, 22 Dec 2010 14:52:06 +0000 (15:52 +0100)]
wifi: Make gsupplicant debug depend on CONNMAN_GSUPPLICANT_DEBUG
Samuel Ortiz [Tue, 21 Dec 2010 15:57:14 +0000 (16:57 +0100)]
rtnl: Register all RDNSS search domains
David Woodhouse [Fri, 17 Dec 2010 22:31:53 +0000 (22:31 +0000)]
rtnl: Add support for RFC6106 DNSSL
David Woodhouse [Fri, 17 Dec 2010 22:31:30 +0000 (22:31 +0000)]
rtnl: Refactor RDNSS support so we can support DNSSL
Rather than registering the new nameserver as we hit the RDNSS option,
gather all the information first and then register the nameservers
after the loop.
That way, we can gather the search domains while we're looping, and
provide them when we register the nameservers.
Samuel Ortiz [Tue, 21 Dec 2010 11:50:31 +0000 (12:50 +0100)]
connection: Add gateway host routes for non NULL gateways
Julien Massot [Mon, 20 Dec 2010 16:24:02 +0000 (16:24 +0000)]
dhcp: Add IPv4LL support
Julien Massot [Mon, 20 Dec 2010 16:24:01 +0000 (16:24 +0000)]
gdhcp: Add netmask getter
Samuel Ortiz [Tue, 21 Dec 2010 00:41:22 +0000 (01:41 +0100)]
openvpn: Identation fixes
Daniel Wagner [Mon, 20 Dec 2010 12:21:11 +0000 (13:21 +0100)]
openvpn: Move foreign_option_ parse code into its own function
Do not clutter the ov_notify loop with parsing code.
Daniel Wagner [Fri, 17 Dec 2010 14:52:04 +0000 (15:52 +0100)]
openvpn: Use ifconfig_remote as peer address
route_vpn_gateway is not in all configuration setup
the peer address.
Daniel Wagner [Fri, 17 Dec 2010 14:52:03 +0000 (15:52 +0100)]
openvpn: Append routes
Daniel Wagner [Fri, 17 Dec 2010 14:52:02 +0000 (15:52 +0100)]
openvpn: Add pushed routes
We should add the routing entries pushed by the OpenVPN server.
Daniel Wagner [Fri, 17 Dec 2010 14:52:01 +0000 (15:52 +0100)]
openvpn: Pass in additional arguments
Pass into the OpenVPN plugin:
- protocol
- port
- auth_user_pass
- tls-remote
- cipher
- auth
- comp-lzo
Daniel Wagner [Fri, 17 Dec 2010 14:52:00 +0000 (15:52 +0100)]
inet: Add connman_inet_[add|del]_network_route()
connman_inet_[add|del]_host_route() are now wrappers
around connman_inet_[add|del]_network_route()
Samuel Ortiz [Fri, 17 Dec 2010 18:51:35 +0000 (19:51 +0100)]
ipconfig: Set method to OFF when the stored method is unknown
Samuel Ortiz [Fri, 17 Dec 2010 17:38:24 +0000 (18:38 +0100)]
service: Set ipconfig structure to NULL if ipconfig_disable fails
Samuel Ortiz [Fri, 17 Dec 2010 17:08:45 +0000 (18:08 +0100)]
ipconfig: Remove unused ipconfig_clone routine
Daniel Wagner [Fri, 17 Dec 2010 12:02:20 +0000 (13:02 +0100)]
openconnect: Remove unused code
David Woodhouse [Thu, 16 Dec 2010 12:57:16 +0000 (12:57 +0000)]
dnsproxy: Listen on IN6ADDR_ANY not Legacy INADDR_ANY
We set the IPV6_V6ONLY sockopt so that Legacy IP connections also work.
Fall back to listening on INADDR_ANY if IPv6 family support isn't present.
David Woodhouse [Thu, 16 Dec 2010 12:56:59 +0000 (12:56 +0000)]
dnsproxy: Fix {udp,tcp}_listener_event() to cope with requests over IPv6
David Woodhouse [Thu, 16 Dec 2010 12:56:02 +0000 (12:56 +0000)]
dnsproxy: Rename 'len' field in request_data
Let's make it clear it's a sockaddr len.
Samuel Ortiz [Fri, 17 Dec 2010 14:21:27 +0000 (15:21 +0100)]
ipconfig: Fix IPv6 config reference count initialization
It should be set to 1 when created.
Samuel Ortiz [Fri, 17 Dec 2010 11:14:30 +0000 (12:14 +0100)]
ofono: Delay ipconfig structure cleanup
Cleaning the structure before calling connman_network_set_connected(FALSE)
prevents the gateways from being properly freed.
Samuel Ortiz [Fri, 10 Dec 2010 23:44:00 +0000 (00:44 +0100)]
ofono: Set regulatory domain from network MCC
The regulatory domains can be set based on the GSM Mobile Country Code.
Samuel Ortiz [Fri, 10 Dec 2010 20:13:04 +0000 (21:13 +0100)]
technology: Export set_regdom to plugins
The oFono plugin will be the first user.
Samuel Ortiz [Thu, 9 Dec 2010 00:37:02 +0000 (01:37 +0100)]
wifi: Regulatory domain setting implementation
Samuel Ortiz [Thu, 9 Dec 2010 00:33:40 +0000 (01:33 +0100)]
gsupplicant: Country setting implementation
This implements the Country wpa_supplicant global property setting, in
order to be able to set a regulatory domain.
Samuel Ortiz [Thu, 9 Dec 2010 00:31:54 +0000 (01:31 +0100)]
gsupplicant: Support empty property set responses
Henri Bragge [Wed, 15 Dec 2010 12:23:41 +0000 (14:23 +0200)]
TODO: Claim ownership of the available EAP tasks
Samuel Ortiz [Wed, 15 Dec 2010 14:16:36 +0000 (15:16 +0100)]
doc: Fix the backtrace document
Jean-Grégoire Foulon [Wed, 15 Dec 2010 09:15:53 +0000 (10:15 +0100)]
doc: Typo fixes
Leena Gunda [Wed, 15 Dec 2010 04:00:19 +0000 (09:30 +0530)]
iwmx: Fix build failure
connman_network_set_method() has been replaced by an IPv4 or
an IPv6 version.
Fixes BMC#11315
Samuel Ortiz [Wed, 15 Dec 2010 09:17:25 +0000 (10:17 +0100)]
network: Don't set an IPv6 address if method is OFF or UNKNOWN
Samuel Ortiz [Tue, 14 Dec 2010 18:22:36 +0000 (19:22 +0100)]
ipconfig: Remove ipconfig_driver
Samuel Ortiz [Tue, 14 Dec 2010 18:15:25 +0000 (19:15 +0100)]
ipconfig: Remove connman_ipconfig_get_ipv6config
Samuel Ortiz [Tue, 14 Dec 2010 18:06:40 +0000 (19:06 +0100)]
AUTHORS: Mention Jukka's contributions
Jukka Rissanen [Thu, 9 Dec 2010 11:11:54 +0000 (13:11 +0200)]
ipconfig: Check for a valid IPv6 config before appending D-Bus data
Jukka Rissanen [Thu, 9 Dec 2010 11:11:53 +0000 (13:11 +0200)]
ipconfig: Check for a valid IPv4 config before appending D-Bus data
Jukka Rissanen [Thu, 9 Dec 2010 11:11:52 +0000 (13:11 +0200)]
ipconfig: Set the IPv6 gateway address only from an IPv6 config
Jukka Rissanen [Thu, 9 Dec 2010 11:11:51 +0000 (13:11 +0200)]
ipconfig: Return a valid IPv6 configuration
Jukka Rissanen [Thu, 9 Dec 2010 11:11:50 +0000 (13:11 +0200)]
ipconfig: Define 2 separate pointers for IPv4 and IPv6
This patch does not yet enable IPv6 only network support but it is
required for later work.
Jukka Rissanen [Thu, 9 Dec 2010 11:11:49 +0000 (13:11 +0200)]
service: __connman_service_notify() prototype change
In preparation for the IPv6 only support, this makes the code more
readable.
Jukka Rissanen [Thu, 9 Dec 2010 11:11:48 +0000 (13:11 +0200)]
ipconfig: Allow more than one IP address per device
Jukka Rissanen [Thu, 9 Dec 2010 11:11:47 +0000 (13:11 +0200)]
ipconfig: Do not add duplicate IP address to the address list
Jukka Rissanen [Thu, 9 Dec 2010 11:11:46 +0000 (13:11 +0200)]
network: Remove ipconfig from the network structure
This is not used at all.
Jukka Rissanen [Thu, 9 Dec 2010 11:11:45 +0000 (13:11 +0200)]
ipconfig: Make sure ipconfig is not null before de referencing it
Julien Massot [Fri, 10 Dec 2010 11:00:35 +0000 (11:00 +0000)]
dhcp: Add function to clear DHCP configuration
Julien Massot [Fri, 10 Dec 2010 11:00:33 +0000 (11:00 +0000)]
gdhcp: Add IPv4 Link-Local support
IPv4 Link-Local negociation starts on gdhcp client failure.
Mohamed Abbas [Thu, 9 Dec 2010 00:37:16 +0000 (16:37 -0800)]
device: Reset device->connections and device->scanning on device enable
Make sure we reset these value since the device just enabled.
Mohamed Abbas [Mon, 13 Dec 2010 15:32:35 +0000 (16:32 +0100)]
gsupplicant: Dont allow scanning while associating
In gsupplicant defer any scanning if association is in progress.
Mohamed Abbas [Thu, 9 Dec 2010 00:37:12 +0000 (16:37 -0800)]
network: Keep device->connections counter in sync
Calling __connman_device_decrease_connections from set_connnected
can decrease the connections counter twice on disconnect.
Samuel Ortiz [Fri, 10 Dec 2010 10:51:33 +0000 (11:51 +0100)]
Mention Julien's contributions
Samuel Ortiz [Fri, 10 Dec 2010 10:50:19 +0000 (11:50 +0100)]
gdhcp: Fix server listener watch events list
Add G_IO_NVAL, G_IO_ERR and G_IO_HUP to the events list.
Julien Massot [Fri, 10 Dec 2010 10:47:01 +0000 (11:47 +0100)]
gdhcp: Fix client listener watch events list
Add G_IO_NVAL, G_IO_ERR and G_IO_HUP to the events list.
Julien Massot [Fri, 10 Dec 2010 10:04:05 +0000 (10:04 +0000)]
gdhcp: Fix spelling mistake
Daniel Wagner [Fri, 10 Dec 2010 08:53:58 +0000 (09:53 +0100)]
tools: Rename stats-ringbuffer-dump to stats-tool
Due to new functionality added to the stats-ringbuffer-dump tool
it is now called stats-tool.
Besides to dump statistic ring buffer files it also allows to create
them for testing.
Furthermore, it create history files now too.
Daniel Wagner [Thu, 9 Dec 2010 12:49:33 +0000 (13:49 +0100)]
stats: Sum stats ring buffer up info history file
When the ring buffer (SERVICE_NAME.data file) is full then it
is summarized into a history (SERVICE_NAME.history) file.
The history file has the same format as the data file.
Daniel Wagner [Mon, 6 Dec 2010 17:12:21 +0000 (18:12 +0100)]
configure: Decrease default size of stats files
Johan Hedberg [Thu, 9 Dec 2010 19:52:54 +0000 (21:52 +0200)]
gdbus: fix accessing freed callback data
cb->disc_func or cb->conn_func could remove the callback so this needs
to be checked for before continuing processing.
David Woodhouse [Tue, 7 Dec 2010 23:29:49 +0000 (23:29 +0000)]
dhcp: Handle proxy PAC option correctly
We're requesting the unofficial proxy option (252) but then throwing
away the response because we don't recognise the type for it.
This fixes proxy detection via DHCP.
Martin Xu [Thu, 9 Dec 2010 15:10:54 +0000 (16:10 +0100)]
rtnl: Call __connman_technology_add_interface() after rtnl->newlink()
The device is created and the underlying technology attached from
the rtnl newlink hook, so __connman_technology_add_interface() needs
to be called after it.
Samuel Ortiz [Thu, 9 Dec 2010 00:28:15 +0000 (01:28 +0100)]
technology: Add support for regulatory domain notification
Samuel Ortiz [Wed, 8 Dec 2010 18:39:58 +0000 (19:39 +0100)]
technology: Set technology driver to NULL when unregistering
Samuel Ortiz [Wed, 8 Dec 2010 18:35:44 +0000 (19:35 +0100)]
Revert "main: Stop rfkill after the plugins"
This reverts commit
b2a4246439738b5e9a262da77d56d99d348da36a.
Lucas De Marchi [Sat, 27 Nov 2010 19:39:01 +0000 (17:39 -0200)]
gdbus: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
Samuel Ortiz [Wed, 8 Dec 2010 15:52:19 +0000 (16:52 +0100)]
technology: Fix technology refcount
The blocked getter was bumping the technology refcount by calling
technology_get() instead of technology_find().
Samuel Ortiz [Wed, 8 Dec 2010 15:04:22 +0000 (16:04 +0100)]
main: Stop rfkill after the plugins
In order to catch rfkill device deletion and to propagate those events
to the technology layer properly.
Samuel Ortiz [Wed, 8 Dec 2010 14:57:12 +0000 (15:57 +0100)]
dnsproxy: Stop polling a nameserver when connect fails
The server data structure also needs to be cleaned up.
Martin Xu [Wed, 8 Dec 2010 11:27:13 +0000 (12:27 +0100)]
ethernet: Add USB CDC tethering support
Martin Xu [Wed, 8 Dec 2010 08:28:40 +0000 (16:28 +0800)]
Add CONNMAN_DEVICE_TYPE_GADGET and CONNMAN_SERVICE_TYPE_GADGET