Daniel Wagner [Mon, 7 May 2012 15:31:03 +0000 (17:31 +0200)]
connection: Fix host route to VPN server
The kernel will ignore host routes which are bogus.
In case of a PtP connection such as PPP for cellular the
gateway address should not be used.
Patrik Flykt [Tue, 8 May 2012 10:14:07 +0000 (13:14 +0300)]
provider: Fix network/netmask parsing and potential crash
Tomasz Bursztyka [Tue, 8 May 2012 08:23:03 +0000 (11:23 +0300)]
gsupplicant: Use the right dbus helper when adding a fixed array in a dict
Fixes BMC#25120
Daniel Wagner [Mon, 7 May 2012 13:22:59 +0000 (15:22 +0200)]
ofono: Check for CM attached before registering network
We need to check the ConnectionManager attached signal before
we are allowed to connect to the gprs context:
connmand[592]: plugins/ofono.c:cm_update_attached() /zte_0 Attached 0
[...]
connmand[592]: plugins/ofono.c:context_set_active() /zte_0 active 1
connmand[592]: plugins/ofono.c:set_property() /zte_0 path /zte_0/context1
org.ofono.ConnectionContext.Active
[...]
connmand[592]: plugins/ofono.c:cm_update_attached() /zte_0 Attached 1
Fixes BMC#25112
Tomasz Bursztyka [Mon, 7 May 2012 13:48:22 +0000 (16:48 +0300)]
wifi: Set disconnecting flag to a relevant value when disconnected
Tomasz Bursztyka [Mon, 7 May 2012 07:21:26 +0000 (10:21 +0300)]
gsupplicant: Fixing a possible memory leak when disconnecting
Marcel Holtmann [Fri, 4 May 2012 13:57:20 +0000 (15:57 +0200)]
Release 0.85
Marcel Holtmann [Fri, 4 May 2012 13:26:50 +0000 (15:26 +0200)]
build: Enable vpnc by default for developer builds
Jukka Rissanen [Fri, 4 May 2012 13:06:50 +0000 (16:06 +0300)]
test: Show autoconnect and state in services list
Show the autoconnect "A" and state "R"eady or "O"nline
indicators in the services list.
Jukka Rissanen [Fri, 4 May 2012 12:49:44 +0000 (15:49 +0300)]
agent: Memory leak in error reply
The pending call was not unreffed.
Patrik Flykt [Wed, 2 May 2012 11:54:42 +0000 (14:54 +0300)]
notifier: Evaluate offline state after 'online' and 'ready'
Jukka Rissanen [Fri, 4 May 2012 12:24:37 +0000 (15:24 +0300)]
wifi: Automatically scan hidden wifi services
This enables service to autoconnect to hidden wifi service.
Fixes BMC#11860
Jukka Rissanen [Fri, 4 May 2012 12:24:36 +0000 (15:24 +0300)]
wifi: Refactor code
Move add_scan_param() to start of the file for the next patch.
Jukka Rissanen [Fri, 4 May 2012 12:24:35 +0000 (15:24 +0300)]
network: Mark service as hidden after successfull connect
We must remember wifi service hidden status so that we can
do active scan of its SSID and then autoconnect to it.
Jukka Rissanen [Fri, 4 May 2012 12:24:34 +0000 (15:24 +0300)]
service: Save/load service hidden status
Jukka Rissanen [Fri, 4 May 2012 12:24:33 +0000 (15:24 +0300)]
service: Add flag that tells if the service is hidden or not
Jukka Rissanen [Fri, 4 May 2012 12:24:32 +0000 (15:24 +0300)]
wifi: Allow max number of scan entries
Do no limit the scan entries to 4 (G_SUPPLICANT_MAX_FAST_SCAN)
but use the limit given by the driver. The limit is given by wpa_s.
If the supplicant does not return the limit, then use 4 as a max
value.
Jukka Rissanen [Fri, 4 May 2012 10:32:09 +0000 (13:32 +0300)]
dhcpv6: Remove timer properly in error cases
Needed so that we do not access stale pointers from
timer handler.
Jukka Rissanen [Fri, 4 May 2012 10:32:08 +0000 (13:32 +0300)]
dhcpv6: Refactor timer clearing
Jukka Rissanen [Fri, 4 May 2012 10:32:07 +0000 (13:32 +0300)]
dhcpv6: Possible memory leak
Patrik Flykt [Wed, 2 May 2012 09:09:51 +0000 (12:09 +0300)]
vpnc: Save only a subset of vpnc options
Add a new field in the structure indicating whether the option
is saved.
Patrik Flykt [Thu, 3 May 2012 13:55:50 +0000 (16:55 +0300)]
wispr: Add check for status 400
Patrik Flykt [Thu, 3 May 2012 13:28:41 +0000 (16:28 +0300)]
gdhcp: Add option and length checks
Patrik Flykt [Thu, 3 May 2012 13:28:40 +0000 (16:28 +0300)]
gdhcp: Fix packet length checking
Fix packet length checking where payload length could have been zero.
Also check that we don't set the option pointer beyond the end of the
packet payload.
Jukka Rissanen [Thu, 3 May 2012 13:15:08 +0000 (16:15 +0300)]
loopback: Check hostname/domainname validity
Jukka Rissanen [Thu, 3 May 2012 13:15:07 +0000 (16:15 +0300)]
inet: Add function that checks if the hostname is valid
Jukka Rissanen [Thu, 3 May 2012 12:27:23 +0000 (15:27 +0300)]
inet: Make sure that we only accept netlink messages from kernel
Jukka Rissanen [Thu, 3 May 2012 12:27:22 +0000 (15:27 +0300)]
rtnl: Make sure that we only accept netlink messages from kernel
Tomasz Bursztyka [Thu, 3 May 2012 09:55:19 +0000 (12:55 +0300)]
service: Do not stay on failure state when it is due to wrong user input
Tomasz Bursztyka [Thu, 3 May 2012 09:55:18 +0000 (12:55 +0300)]
network: Set service as a userconnect when connecting a hidden network
This fixes when connecting to an hidden services fails, so the user will be
asked to retry through agent api.
Tomasz Bursztyka [Thu, 3 May 2012 09:55:17 +0000 (12:55 +0300)]
service: Adding a function to set userconnect value
This is necessary for further fixing while connecting to an hidden network.
Tomasz Bursztyka [Wed, 2 May 2012 13:46:14 +0000 (16:46 +0300)]
service: Remove useless scan requests
Tomasz Bursztyka [Wed, 2 May 2012 13:46:13 +0000 (16:46 +0300)]
doc: Adding description of a new possible error for RequestInput method
Tomasz Bursztyka [Wed, 2 May 2012 13:46:12 +0000 (16:46 +0300)]
service: Handle nicely request input error
Tomasz Bursztyka [Wed, 2 May 2012 13:46:11 +0000 (16:46 +0300)]
test: Handling properly Canceled or LaunchBrowser errors
Tomasz Bursztyka [Wed, 2 May 2012 13:46:10 +0000 (16:46 +0300)]
wispr: Managing the case when user wants to login through the browser himself
Tomasz Bursztyka [Wed, 2 May 2012 13:46:09 +0000 (16:46 +0300)]
agent: Adding a parameter to give the error name to browser callback
Tomasz Bursztyka [Thu, 3 May 2012 12:15:57 +0000 (15:15 +0300)]
agent: Adding a parameter to give the error name to authentication callback
Tomasz Bursztyka [Wed, 2 May 2012 13:46:07 +0000 (16:46 +0300)]
wispr: Adding some useful debug outputs
Tomasz Bursztyka [Wed, 2 May 2012 13:46:06 +0000 (16:46 +0300)]
wispr: Set gweb debug at the right place
Jukka Rissanen [Wed, 2 May 2012 10:13:06 +0000 (13:13 +0300)]
wispr: Use g_strdup() instead of strdup()
Valgrind reports following error if strdup() is used here:
==12572== Invalid read of size 4
==12572== at 0x429113B: ??? (in /lib/libc-2.11.90.so)
==12572== by 0x80A8154: wispr_route_request (wispr.c:471)
==12572== by 0x805CA4F: resolv_result (gweb.c:449)
==12572== by 0x805DD4B: sort_and_return_results (gresolv.c:494)
==12572== by 0x805E285: received_udp_data (gresolv.c:705)
==12572== by 0x40AD8E6: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x4078AFA: g_main_context_dispatch (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x407911E: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x40796BC: g_main_loop_run (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x807400F: main (main.c:508)
==12572== Address 0x55f406c is 20 bytes inside a block of size 22 alloc'd
==12572== at 0x4029AE9: malloc (vg_replace_malloc.c:236)
==12572== by 0x40B1D6C: g_malloc (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x40B4C25: g_strdup (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x805CA23: resolv_result (gweb.c:1222)
==12572== by 0x805DD4B: sort_and_return_results (gresolv.c:494)
==12572== by 0x805E285: received_udp_data (gresolv.c:705)
==12572== by 0x40AD8E6: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x4078AFA: g_main_context_dispatch (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x407911E: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x40796BC: g_main_loop_run (in /lib/libglib-2.0.so.0.2800.6)
==12572== by 0x807400F: main (main.c:508)
==12572==
If g_strdup() is used then no error is printed.
This error does not make much sense but anyway use g_strdup()
like in other parts of this file.
Jukka Rissanen [Wed, 2 May 2012 09:56:51 +0000 (12:56 +0300)]
wispr: Possible memory leak in error case
Jukka Rissanen [Wed, 2 May 2012 09:56:19 +0000 (12:56 +0300)]
wifi: Plugin internal variable was not static
Jukka Rissanen [Fri, 27 Apr 2012 10:55:46 +0000 (13:55 +0300)]
connection: Set host route to VPN server
This is needed so that we can access hosts behind the VPN.
The route might already be setup if VPN server is the same
as nameserver or similar.
Marcel Holtmann [Tue, 1 May 2012 08:16:52 +0000 (10:16 +0200)]
test: Also monitor technology changes
Patrik Flykt [Mon, 30 Apr 2012 11:13:01 +0000 (14:13 +0300)]
service: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:13:00 +0000 (14:13 +0300)]
clock: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:12:59 +0000 (14:12 +0300)]
timeserver: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:12:58 +0000 (14:12 +0300)]
timeserver: Helper function for adding timeservers once to a list
Patrik Flykt [Mon, 30 Apr 2012 11:12:40 +0000 (14:12 +0300)]
README: Fix version number typo
Marcel Holtmann [Sun, 29 Apr 2012 23:35:23 +0000 (01:35 +0200)]
notifier: Return offline as global state if offline mode is enabled
Marcel Holtmann [Sun, 29 Apr 2012 23:31:24 +0000 (01:31 +0200)]
test: Update service monitoring script
Marcel Holtmann [Sun, 29 Apr 2012 23:27:43 +0000 (01:27 +0200)]
test: Remove script to monitor manager
Marcel Holtmann [Sun, 29 Apr 2012 23:17:11 +0000 (01:17 +0200)]
doc: Fix tabs vs spaces for service and technology documentation
Marcel Holtmann [Sun, 29 Apr 2012 23:13:52 +0000 (01:13 +0200)]
doc: Fix tabs vs spaces for agent documentation
Marcel Holtmann [Sun, 29 Apr 2012 13:13:21 +0000 (15:13 +0200)]
Release 0.84
Marcel Holtmann [Sun, 29 Apr 2012 10:59:18 +0000 (12:59 +0200)]
build: Remove dependency on libcap-ng
Marcel Holtmann [Sat, 28 Apr 2012 23:30:25 +0000 (01:30 +0200)]
test: Update service monitoring script
Marcel Holtmann [Sat, 28 Apr 2012 23:15:41 +0000 (01:15 +0200)]
test: Add more pretty print for service monitoring
Marcel Holtmann [Sat, 28 Apr 2012 23:12:44 +0000 (01:12 +0200)]
test: Add pretty printing for timeservers
Marcel Holtmann [Sat, 28 Apr 2012 23:06:19 +0000 (01:06 +0200)]
notifier: Remove DefaultTechnology signal
Marcel Holtmann [Sat, 28 Apr 2012 23:03:52 +0000 (01:03 +0200)]
README: Mention wpa_supplicant version details
Marcel Holtmann [Sat, 28 Apr 2012 22:59:56 +0000 (00:59 +0200)]
plugins: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:59:40 +0000 (00:59 +0200)]
core: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:58 +0000 (00:58 +0200)]
tools: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:34 +0000 (00:58 +0200)]
gsupplicant: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:22 +0000 (00:58 +0200)]
gdhcp: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:57:38 +0000 (00:57 +0200)]
gweb: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:49:54 +0000 (00:49 +0200)]
nmcompat: Use more detailed state information
Marcel Holtmann [Sat, 28 Apr 2012 22:19:28 +0000 (00:19 +0200)]
notifier: Fix small coding style issue
Marcel Holtmann [Sat, 28 Apr 2012 22:05:21 +0000 (00:05 +0200)]
nmcompat: Fix error message
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:08 +0000 (12:00 +0300)]
gssuplicant: Fix when a bss should be added or replaced in a network
Note: on wpa_supplivant 0.7.x this fixes bug 21332 _only_ when switching
from wep to psk, not the other way round due to wpa_supplicant not telling
about RSN/WPA fields being empty. This could be fixed in parsing IE every
time it is updated, if wpa_s signals it. It work properly on
wpa_supplicant 0.8.x and 1.x since signaling RSN/WPA changes has been
fixed.
Fixes BMC#21332
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:07 +0000 (12:00 +0300)]
gsupplicant: Added more debugging messages when adding or replacing a network
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:06 +0000 (12:00 +0300)]
gsupplicant: Creating an helper function to compute bss security
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:05 +0000 (12:00 +0300)]
gsupplicant: Renaming a function for a more relevant name
Marcel Holtmann [Fri, 27 Apr 2012 23:05:06 +0000 (01:05 +0200)]
Release 0.83
Patrik Flykt [Fri, 27 Apr 2012 14:33:18 +0000 (17:33 +0300)]
wispr: Set host routes when requested by gweb
Set host routes via the interface and identified gateway when
requested by gweb. Remove host routes when the check is done.
Fixes BMC#25061
Patrik Flykt [Fri, 27 Apr 2012 14:33:17 +0000 (17:33 +0300)]
ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()
In order to be able to request a certain ipconfig type, add the type
as a parameter to __connman_ipconfig_get_gateway_from_index().
Patrik Flykt [Fri, 27 Apr 2012 14:33:16 +0000 (17:33 +0300)]
tools: Add WISPr route request debug printouts
Update g_web_request_get() and add WISPr route request debug
printouts.
Patrik Flykt [Fri, 27 Apr 2012 14:33:15 +0000 (17:33 +0300)]
wispr: Update g_web_request_get()
Patrik Flykt [Fri, 27 Apr 2012 14:33:14 +0000 (17:33 +0300)]
6to4: Update g_web_request_get()
Patrik Flykt [Fri, 27 Apr 2012 14:33:13 +0000 (17:33 +0300)]
gweb: Define GWebRouteFunc
Define GWebRouteFunc that will be called when a route to the
intended destination may need to be set up.
Jukka Rissanen [Fri, 27 Apr 2012 13:01:52 +0000 (16:01 +0300)]
technology: Create the settings file in init
We save offline mode status in init so that settings
file gets created if it was missing.
Jukka Rissanen [Fri, 27 Apr 2012 13:01:51 +0000 (16:01 +0300)]
technology: Save technology state if entry is missing from file
So we save the technology status if the settings file does not
contain it.
Jukka Rissanen [Fri, 27 Apr 2012 13:01:50 +0000 (16:01 +0300)]
storage: Create settings file only when migrating
The settings file is created only when migrating
from default.profile. This means that technology
default values are used if settings file does not
exists.
Jukka Rissanen [Fri, 27 Apr 2012 13:01:49 +0000 (16:01 +0300)]
technology: Offline mode is OFF by default
By defalt offline mode is OFF if settings file
is not found or OfflineMode entry is not found
in settings file.
Jukka Rissanen [Fri, 27 Apr 2012 13:01:48 +0000 (16:01 +0300)]
technology: Enable ethernet by default
Ethernet is enabled by default if settings file is not found
or the Wired entry is not found in the file.
Marcel Holtmann [Fri, 27 Apr 2012 12:07:56 +0000 (14:07 +0200)]
AUTHORS: Metion Adrien's contribution
Adrien Bustany [Fri, 27 Apr 2012 07:59:04 +0000 (10:59 +0300)]
openvpn: Fix --comp-lzo parameter handling
The previous code would assume all commandline options to have a value,
whereas --comp-lzo does not. As a result, openvpn's argv would have a
spurious empty string in its argv, and openvpn would not launch.
Patrik Flykt [Thu, 26 Apr 2012 13:28:20 +0000 (16:28 +0300)]
test: Pretty-print timservers in list-services
Marcel Holtmann [Thu, 26 Apr 2012 16:22:07 +0000 (18:22 +0200)]
build: Fix broken build without GnuTLS
Alok Barsode [Thu, 26 Apr 2012 10:17:43 +0000 (13:17 +0300)]
agent: If service has no security, do not ask for a passphrase
Tomasz Bursztyka [Thu, 26 Apr 2012 07:30:20 +0000 (10:30 +0300)]
wifi: Set connected to false before associating when disconnected
This way it will trigger the error which will be reported to service.
Tomasz Bursztyka [Wed, 25 Apr 2012 15:39:19 +0000 (18:39 +0300)]
wifi: Be connected when relevant, stay connected if roaming
Marcel Holtmann [Thu, 26 Apr 2012 06:29:50 +0000 (08:29 +0200)]
doc: Fix description of technology scan method
Marcel Holtmann [Wed, 25 Apr 2012 15:22:54 +0000 (17:22 +0200)]
build: Fix broken --disable-bluetooth
Tomasz Bursztyka [Wed, 25 Apr 2012 11:22:14 +0000 (14:22 +0300)]
service: Fixing which wpspin we set according to PBC method or not
For PBC method, the WiFi.PinWPS has to be NULL.
Fixes BMC#25076
Jukka Rissanen [Wed, 25 Apr 2012 07:41:59 +0000 (10:41 +0300)]
dnsproxy: Delay cache removal
The idea here is to delay cache removal few seconds if there
are no cache users any more (refcount goes to 0). This is useful
for IPv6 RDNSS where new DNS servers are created right after old
one is removed. In this case we do not want to loose the cache
that still has perfectly valid data.
Jukka Rissanen [Wed, 25 Apr 2012 08:20:04 +0000 (11:20 +0300)]
ipconfig: Do not tweak IPv6 status of ignored devices
Marcel Holtmann [Wed, 25 Apr 2012 08:56:23 +0000 (10:56 +0200)]
ethernet: Fix small whitespace issue