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
Patrik Flykt [Wed, 25 Apr 2012 08:35:03 +0000 (11:35 +0300)]
service: Stay at ready state with a preferred technology
Stay at ready state with a preferred technology also when the
online check fails. Otherwise we end up in an endless autoconnect
loop with two preferred WiFi networks where neither one goes to
online.
Print out a warning message when the online check fails.
Tomasz Bursztyka [Wed, 25 Apr 2012 05:27:36 +0000 (08:27 +0300)]
service: Use the right network keyword for wps
Marcel Holtmann [Tue, 24 Apr 2012 15:17:10 +0000 (17:17 +0200)]
Release 0.82
Tomasz Bursztyka [Tue, 24 Apr 2012 15:10:00 +0000 (18:10 +0300)]
wifi: Fixing autoscan device unref issues
- stop_autoscan() should unref the device only when relevant, i.e. when
interval and/or timeout have been set.
- autoscan_scan_callback() should unref the device since it has been
referenced in throw_wifi_scan()
Jukka Rissanen [Tue, 24 Apr 2012 13:40:41 +0000 (16:40 +0300)]
resolver: Use proper IPv6 source address when sending DNS queries
This fix is for following scenario:
- New interface is coming up.
- There is radvd in the connected network and it is
advertising IPv6 addresses and DNS servers.
- Kernel receives router advertisement and picks up the DNS
server information which is then routed via netlink to
rtnl.c:rtnl_newnduseropt() which then creates DNS listener.
- Kernel activates DAD (duplicate address detection).
- As the DAD takes some time we now have interface up
and it only has link local IPv6 address defined.
- The DNS listener is now using link local source addresses when
sending queries instead of proper autoconfigured addresses.
- When DAD is finished, the interface will have autoconfigured
addresses assigned and corresponding netlink message will cause
function rtnl.c:process_newaddr() to be called.
- If all this happens, then we re-create DNS listener
in dnsproxy.c so that listener will have a proper
(autoconfigured) source address when sending DNS packets.
Tomasz Bursztyka [Tue, 24 Apr 2012 13:29:51 +0000 (16:29 +0300)]
wifi: Autoscan should be started or stopped according to interface's state
Tomasz Bursztyka [Tue, 24 Apr 2012 13:41:37 +0000 (16:41 +0300)]
wifi: Autoscan fallback using a base exponential of 3 and a shorter limit
A base of 2 creates too many scans on too short times, so a base of 3 reduces
this amount. And a limit of 3600 is way too much, a scan every 5 minute is
more relevant.
Patrik Flykt [Tue, 24 Apr 2012 12:34:30 +0000 (15:34 +0300)]
notifier: Handle Manager state when exiting online
Service state can transition from online to disconnect like this:
1) old online - new disconnect/association => association
2) old association - new disconnect/disconnect => disconnect
Create a separate function for leaving online mode, don't rely on
the previous old_state in service_indicate_state().
Fixes BMC#25073
Tomasz Bursztyka [Tue, 24 Apr 2012 14:15:57 +0000 (17:15 +0300)]
service: a wps pin of length 0 is valid and leads to pbc method usage
Tomasz Bursztyka [Tue, 24 Apr 2012 13:46:05 +0000 (16:46 +0300)]
README: adding necessary configuration hints about wpa_supplicant
Patrik Flykt [Tue, 24 Apr 2012 11:02:35 +0000 (14:02 +0300)]
timeserver: Fix NULL network struct access for VPN
A VPN does not have a network struct set. Thus do not attempt to
look up the corresponding interface index for a NULL network
pointer.
Fixes BMC#25075
Marcel Holtmann [Mon, 23 Apr 2012 15:21:07 +0000 (17:21 +0200)]
Release 0.81
Marcel Holtmann [Mon, 23 Apr 2012 15:03:35 +0000 (17:03 +0200)]
doc: Update README to actually reflect reality
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:21 +0000 (11:22 +0300)]
device: Removing emulated background scanning
Such "background" scanning was in use only for wifi devices. Such feature
is now fully moved and better supported in connman's wifi plugin.
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:20 +0000 (11:22 +0300)]
device: Remove the scheduled scan method
wifi was the only one using it, and this is replaced by the combination of
bgscan and autoscan.
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:19 +0000 (11:22 +0300)]
wifi: Remove old background scanning technique call
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:18 +0000 (11:22 +0300)]
wifi: Specify bgscan parameters according to main.conf settings
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:17 +0000 (11:22 +0300)]
wifi: Setup autoscan according to the main.conf settings