Lucas De Marchi [Fri, 18 May 2012 20:30:07 +0000 (17:30 -0300)]
gdbus: use GDBusArgInfo to generate introspection
By using GDBusArgInfo in methods and signals, the introspection
generation is much simpler and we can add each argument name.
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:06 +0000 (17:30 -0300)]
Convert GDBus methods and signals to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
Lucas De Marchi [Fri, 18 May 2012 20:30:05 +0000 (17:30 -0300)]
gdbus: add and use helpers for table declarations
Lucas De Marchi [Fri, 18 May 2012 20:30:04 +0000 (17:30 -0300)]
gdbus: add argument info to methods and signals
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:03 +0000 (17:30 -0300)]
Constify GDBus signal tables
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:02 +0000 (17:30 -0300)]
Constify GDBus method tables
Jukka Rissanen [Wed, 9 May 2012 08:28:21 +0000 (11:28 +0300)]
connection: Refactor VPN route setup
Marcel Holtmann [Fri, 18 May 2012 02:56:27 +0000 (19:56 -0700)]
gdbus: Constify introspection method table
Lucas De Marchi [Thu, 17 May 2012 18:19:59 +0000 (15:19 -0300)]
gdbus: do not call memset for terminating NUL
Lucas De Marchi [Thu, 17 May 2012 18:19:58 +0000 (15:19 -0300)]
gdbus: return if method signature is malformed
Marcel Holtmann [Thu, 17 May 2012 18:21:07 +0000 (11:21 -0700)]
doc: Clarify hidden WiFi network relations with Name+Type properties
Marcel Holtmann [Thu, 17 May 2012 18:08:37 +0000 (11:08 -0700)]
technology: Set deprecated flag for GetProperties method
Marcel Holtmann [Thu, 17 May 2012 18:08:00 +0000 (11:08 -0700)]
service: Set deprecated flag for GetProperties method
Marcel Holtmann [Thu, 17 May 2012 18:07:20 +0000 (11:07 -0700)]
doc: Mention deprecation of GetProperties methods
Grant Erickson [Tue, 15 May 2012 23:03:17 +0000 (16:03 -0700)]
gsupplicant: Coding style clean-up
This resolves several post-commit review coding style comments for
raw PSK support.
Jukka Rissanen [Tue, 15 May 2012 07:59:45 +0000 (10:59 +0300)]
gsupplicant: Avoid critical errors
wpa_supplicant sends error if wlan interface cannot be created.
Do not treat this error as critical because after calling
g_critical() the program logging will be disabled.
Patrik Flykt [Mon, 14 May 2012 12:20:45 +0000 (15:20 +0300)]
doc: Update configuration format documentation
Clarify that 'Name' is used only as a string representation of an
SSID and ignored if the entry contains an 'SSID' entry. Also clarify
that the identifier part is unique only within the .config file.
Add indentation.
Patrik Flykt [Mon, 14 May 2012 12:20:44 +0000 (15:20 +0300)]
config: Reject invalid SSID hexadecimal entries
Reject provisioning .config file SSID entries that are not in
hexadecimal.
Jukka Rissanen [Mon, 14 May 2012 10:33:47 +0000 (13:33 +0300)]
rtnl: Domain search list was not handled according to RFC 6106
Domain search list option can exist in options without RDNSS option.
Note that the DNSSL netlink support is not yet in linux kernel
3.4-rc7, thus we will not yet get a DNSSL option in netlink RA
options.
Jukka Rissanen [Mon, 14 May 2012 10:33:46 +0000 (13:33 +0300)]
resolver: Do not try to update service if server is not set
Jukka Rissanen [Mon, 14 May 2012 10:33:45 +0000 (13:33 +0300)]
resolver: Allow update to domain if server is not set
Jukka Rissanen [Mon, 14 May 2012 10:33:44 +0000 (13:33 +0300)]
resolver: Follow connman coding style
Grant Erickson [Tue, 15 May 2012 08:51:21 +0000 (01:51 -0700)]
gsupplicant: fix "raw" PSK support
This fixes "raw" PSK support by first converting the "raw" PSK from
a 64-character hexadecimal string to 32-byte array before appending
it to the network dictionary.
Patrik Flykt [Fri, 11 May 2012 09:40:16 +0000 (12:40 +0300)]
doc: SSID field is hexadecimal only, also document Name field
Daniel Wagner [Fri, 11 May 2012 09:35:49 +0000 (11:35 +0200)]
README: Add comment on OpenVPN version to use
Daniel Wagner [Fri, 11 May 2012 09:35:48 +0000 (11:35 +0200)]
README: Move the VPN entry down
So it is under the "Configuration and options" section.
Jukka Rissanen [Thu, 10 May 2012 13:31:58 +0000 (16:31 +0300)]
gdhcp: Make sure we have the message before accessing it
Jukka Rissanen [Thu, 10 May 2012 13:21:52 +0000 (16:21 +0300)]
gdhcp: Message type is required in DHCPv4
Daniel Wagner [Thu, 10 May 2012 15:33:40 +0000 (17:33 +0200)]
AUTHORS: Mention Lucas De Marchi's contributions
Jukka Rissanen [Thu, 10 May 2012 06:43:46 +0000 (09:43 +0300)]
dhcpv6: Check NULL pointer dereference
Patrik Flykt [Wed, 9 May 2012 14:20:14 +0000 (17:20 +0300)]
AUTHORS: Mention Henrique Dante de Almeida's contributions
Jukka Rissanen [Wed, 9 May 2012 10:48:26 +0000 (13:48 +0300)]
dhcp: Use g_list_length() to calculate the list length
Jukka Rissanen [Wed, 9 May 2012 10:48:25 +0000 (13:48 +0300)]
dhcpv6: Check NULL pointer dereference
Jukka Rissanen [Wed, 9 May 2012 10:48:24 +0000 (13:48 +0300)]
dhcp: Check NULL pointer dereference
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:03 +0000 (16:21 -0300)]
wispr: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:02 +0000 (16:21 -0300)]
tools: Remove dead assignments in supplicant
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:01 +0000 (16:21 -0300)]
tools: Remove dead assignment in supplicant
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:00 +0000 (16:21 -0300)]
tools: Remove dead assignment in iptables-test
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:59 +0000 (16:20 -0300)]
wispr: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:58 +0000 (16:20 -0300)]
rtnl: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:57 +0000 (16:20 -0300)]
iptables: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:56 +0000 (16:20 -0300)]
dnsproxy: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:55 +0000 (16:20 -0300)]
dnsproxy: Return error if initial send fails
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:54 +0000 (16:20 -0300)]
vpn: Fix null pointer dereference
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:53 +0000 (16:20 -0300)]
vpn: Fix null pointer dereference
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:52 +0000 (16:20 -0300)]
ofono: Fix uninitialized variable
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:51 +0000 (16:20 -0300)]
gsupplicant: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:50 +0000 (16:20 -0300)]
gdhcp: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:49 +0000 (16:20 -0300)]
gdhcp: Remove assignment that's never used
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:48 +0000 (16:20 -0300)]
ofono: Fix uninitialized value
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:45 +0000 (16:20 -0300)]
wifi: Fix NULL ssid being passed to memcmp
Daniel Wagner [Tue, 8 May 2012 15:08:23 +0000 (17:08 +0200)]
oFono: Initialize prefix_length
We could end up calling connman_ipaddress_set_ipv6() withouth
prefix_lenght initialized.
Reported by hdante.
Marcel Holtmann [Tue, 8 May 2012 15:13:18 +0000 (08:13 -0700)]
Release 1.0
Marcel Holtmann [Tue, 8 May 2012 14:59:48 +0000 (07:59 -0700)]
README: Fix minor spelling mistake
Adrien Bustany [Tue, 8 May 2012 14:26:07 +0000 (17:26 +0300)]
connection: Fix possible NULL dereference
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