framework/connectivity/connman.git
13 years agoAdd workaround for not linking against GnuTLS
Marcel Holtmann [Sat, 6 Nov 2010 19:06:05 +0000 (20:06 +0100)]
Add workaround for not linking against GnuTLS

13 years agoRemove some leftovers from Device/Network interface removal
Marcel Holtmann [Sat, 6 Nov 2010 12:45:24 +0000 (13:45 +0100)]
Remove some leftovers from Device/Network interface removal

13 years agoSupport chunk encode in HTTP response.
Mohamed Abbas [Sat, 6 Nov 2010 01:20:46 +0000 (18:20 -0700)]
Support chunk encode in HTTP response.

If chunk encode is used them make sure we strip the chunk
body only.

13 years agoAdd chunk encode support when doing HTTP request.
Mohamed Abbas [Sat, 6 Nov 2010 01:20:45 +0000 (18:20 -0700)]
Add chunk encode support when doing HTTP request.

Allow user to send chunked HTTP post request by calling the
input callback function on write until the user indicate no
more data then we send the 0 length chunk to indicate end of
request body.

Now we use a new watch for sending data. This watch is only
active if more data need to be send.

13 years agoiptables: Add support for interface and IP option inversion
Samuel Ortiz [Sat, 6 Nov 2010 00:21:44 +0000 (01:21 +0100)]
iptables: Add support for interface and IP option inversion

13 years agoiptables: Add source and destination IP option support
Samuel Ortiz [Sat, 6 Nov 2010 00:11:50 +0000 (01:11 +0100)]
iptables: Add source and destination IP option support

13 years agoiptables: Add in and out interface option support
Samuel Ortiz [Fri, 5 Nov 2010 23:30:36 +0000 (00:30 +0100)]
iptables: Add in and out interface option support

13 years agoiptables: Dump ipt_entry ip field
Samuel Ortiz [Fri, 5 Nov 2010 23:12:32 +0000 (00:12 +0100)]
iptables: Dump ipt_entry ip field

13 years agoRemove unused connman_device_get_path function
Marcel Holtmann [Fri, 5 Nov 2010 15:42:27 +0000 (16:42 +0100)]
Remove unused connman_device_get_path function

13 years agoRemove unused __connman_element_get_*_path functions
Marcel Holtmann [Fri, 5 Nov 2010 15:40:17 +0000 (16:40 +0100)]
Remove unused __connman_element_get_*_path functions

13 years agoRemove unused connman_network_get_path function
Marcel Holtmann [Fri, 5 Nov 2010 15:37:33 +0000 (16:37 +0100)]
Remove unused connman_network_get_path function

13 years agoRemove DBusConnection reference from device/network interfaces
Marcel Holtmann [Fri, 5 Nov 2010 15:10:57 +0000 (16:10 +0100)]
Remove DBusConnection reference from device/network interfaces

13 years agoRemove test scripts for no longer existing interfaces
Marcel Holtmann [Fri, 5 Nov 2010 10:51:23 +0000 (11:51 +0100)]
Remove test scripts for no longer existing interfaces

13 years agoRemove documentation for no longer existing interfaces
Marcel Holtmann [Fri, 5 Nov 2010 10:44:47 +0000 (11:44 +0100)]
Remove documentation for no longer existing interfaces

13 years agoRemove device list from Technology interface
Marcel Holtmann [Thu, 4 Nov 2010 22:22:38 +0000 (23:22 +0100)]
Remove device list from Technology interface

13 years agoFix fallout within plugins
Marcel Holtmann [Thu, 4 Nov 2010 22:22:21 +0000 (23:22 +0100)]
Fix fallout within plugins

13 years agoRemove unneeded CONNMAN_DEVICE_INTERFACE
Marcel Holtmann [Thu, 4 Nov 2010 22:08:50 +0000 (23:08 +0100)]
Remove unneeded CONNMAN_DEVICE_INTERFACE

13 years agoRemove unneeded CONNMAN_NETWORK_INTERFACE
Marcel Holtmann [Thu, 4 Nov 2010 22:03:39 +0000 (23:03 +0100)]
Remove unneeded CONNMAN_NETWORK_INTERFACE

13 years agoRemove unneeded enum connman_network_protocol
Marcel Holtmann [Thu, 4 Nov 2010 21:50:54 +0000 (22:50 +0100)]
Remove unneeded enum connman_network_protocol

13 years agoRemove unneeded enum connman_device_mode
Marcel Holtmann [Thu, 4 Nov 2010 21:47:30 +0000 (22:47 +0100)]
Remove unneeded enum connman_device_mode

13 years agoFix wifi plugin build issues when not built-in.
Samuel Ortiz [Thu, 4 Nov 2010 16:57:08 +0000 (17:57 +0100)]
Fix wifi plugin build issues when not built-in.

13 years agoDon't use O_CLOEXEC flag to open()
Marcel Holtmann [Thu, 4 Nov 2010 16:00:35 +0000 (17:00 +0100)]
Don't use O_CLOEXEC flag to open()

13 years agoUse * characters for hidden password input
Marcel Holtmann [Thu, 4 Nov 2010 12:04:10 +0000 (13:04 +0100)]
Use * characters for hidden password input

13 years agoAdd support for WISPr username/password input dialogs
Marcel Holtmann [Thu, 4 Nov 2010 11:59:37 +0000 (12:59 +0100)]
Add support for WISPr username/password input dialogs

13 years agoRelease 0.63
Marcel Holtmann [Wed, 3 Nov 2010 20:45:27 +0000 (21:45 +0100)]
Release 0.63

13 years agoservice: Try to autoconnect favorite but failed services at boot
Samuel Ortiz [Wed, 3 Nov 2010 16:48:19 +0000 (17:48 +0100)]
service: Try to autoconnect favorite but failed services at boot

13 years agosupplicant: Check for network before removing it
Samuel Ortiz [Wed, 3 Nov 2010 16:44:33 +0000 (17:44 +0100)]
supplicant: Check for network before removing it

When disconnecting by removing a network, check that the targeted network
is the one currently set.

13 years agoconnect-vpn: Add OpenVPN support
Daniel Wagner [Wed, 3 Nov 2010 14:07:05 +0000 (15:07 +0100)]
connect-vpn: Add OpenVPN support

13 years agoopenvpn: Add OpenVPN support
Daniel Wagner [Wed, 3 Nov 2010 11:36:48 +0000 (12:36 +0100)]
openvpn: Add OpenVPN support

13 years agoprovider: Forward peer address to the ipv4 layer
Samuel Ortiz [Wed, 3 Nov 2010 09:32:39 +0000 (10:32 +0100)]
provider: Forward peer address to the ipv4 layer

13 years agoconnection: Prefer IPv4 peer over the regular address
Samuel Ortiz [Wed, 3 Nov 2010 09:31:17 +0000 (10:31 +0100)]
connection: Prefer IPv4 peer over the regular address

If the peer IPv4 address is set, this will be the gateway address.

13 years agoinet: Add peer argument to address modification routine
Samuel Ortiz [Wed, 3 Nov 2010 09:29:05 +0000 (10:29 +0100)]
inet: Add peer argument to address modification routine

Some point to point interfaces need to specify their peer address.

13 years agoelement: Add peer IPv4 property
Samuel Ortiz [Wed, 3 Nov 2010 09:24:44 +0000 (10:24 +0100)]
element: Add peer IPv4 property

13 years agoiptables: Support for user defined chain jumps
Samuel Ortiz [Fri, 29 Oct 2010 22:43:25 +0000 (00:43 +0200)]
iptables: Support for user defined chain jumps

13 years agoiptables: Update entries offsets
Samuel Ortiz [Fri, 29 Oct 2010 22:26:57 +0000 (00:26 +0200)]
iptables: Update entries offsets

13 years agoiptables: Merge rule adding routines
Samuel Ortiz [Fri, 29 Oct 2010 22:40:06 +0000 (00:40 +0200)]
iptables: Merge rule adding routines

There is no valid reason for separating the builtin case from the generic
one.

13 years agoPrint hotspot location details
Marcel Holtmann [Tue, 2 Nov 2010 14:46:45 +0000 (15:46 +0100)]
Print hotspot location details

13 years agoShow provided WISPr logout URL
Marcel Holtmann [Tue, 2 Nov 2010 14:32:31 +0000 (15:32 +0100)]
Show provided WISPr logout URL

13 years agogsupplicant: Remove network from wpa_s when disconnecting
Kalle Valo [Wed, 27 Oct 2010 18:49:31 +0000 (21:49 +0300)]
gsupplicant: Remove network from wpa_s when disconnecting

gsupplicant adds networks to wpasupplicant but never removes them. So
after a time wpasupplicant will contain a lot of disabled networks. This
doesn't seem to create any problems, but it's still better to make sure
that wpasupplicant configuration is clean.

13 years agogsupplicant: Store network path
Kalle Valo [Wed, 27 Oct 2010 18:49:30 +0000 (21:49 +0300)]
gsupplicant: Store network path

Store wpasupplicant network path so that it can be removed later.

13 years agogsupplicant: Fix deadlock when disassociate while associating
Mohamed Abbas [Wed, 27 Oct 2010 10:17:39 +0000 (03:17 -0700)]
gsupplicant: Fix deadlock when disassociate while associating

Without setting the associating flag to false, ConnMan could potentially enter
an infinite loop through __connman_network_disconnect().

13 years agoAdd login handling to WISPr command line client
Marcel Holtmann [Tue, 2 Nov 2010 09:47:05 +0000 (10:47 +0100)]
Add login handling to WISPr command line client

13 years agoAdd simple support for dealing with HTTP body content
Marcel Holtmann [Tue, 2 Nov 2010 06:21:41 +0000 (07:21 +0100)]
Add simple support for dealing with HTTP body content

13 years agoAdd some skeleton for POST support
Marcel Holtmann [Mon, 1 Nov 2010 19:34:42 +0000 (20:34 +0100)]
Add some skeleton for POST support

13 years agoSplit the GET and POST method APIs
Marcel Holtmann [Mon, 1 Nov 2010 13:40:46 +0000 (14:40 +0100)]
Split the GET and POST method APIs

13 years agoAdd support for decoding WISPr page elements
Marcel Holtmann [Mon, 1 Nov 2010 01:46:40 +0000 (02:46 +0100)]
Add support for decoding WISPr page elements

13 years agoUse return value of result function to indicate to proceed or not
Marcel Holtmann [Mon, 1 Nov 2010 01:07:23 +0000 (02:07 +0100)]
Use return value of result function to indicate to proceed or not

13 years agoThe HTTP status code can be retrieved from result object
Marcel Holtmann [Mon, 1 Nov 2010 01:05:45 +0000 (02:05 +0100)]
The HTTP status code can be retrieved from result object

13 years agoAdd parsing of initial WISPr response
Marcel Holtmann [Mon, 1 Nov 2010 01:00:47 +0000 (02:00 +0100)]
Add parsing of initial WISPr response

13 years agoAdd really simple content token parser
Marcel Holtmann [Mon, 1 Nov 2010 00:40:56 +0000 (01:40 +0100)]
Add really simple content token parser

13 years agoFix GWeb header parsing and make it more robust
Marcel Holtmann [Sun, 31 Oct 2010 23:58:50 +0000 (00:58 +0100)]
Fix GWeb header parsing and make it more robust

13 years agoEnsure that chunk buffer is '\0' terminated
Marcel Holtmann [Sat, 30 Oct 2010 23:23:24 +0000 (01:23 +0200)]
Ensure that chunk buffer is '\0' terminated

13 years agoReset GWebResult buffer and length in case of an error
Marcel Holtmann [Sat, 30 Oct 2010 23:03:37 +0000 (01:03 +0200)]
Reset GWebResult buffer and length in case of an error

13 years agoAdd support for parsing HTTP status code response
Marcel Holtmann [Sat, 30 Oct 2010 22:59:38 +0000 (00:59 +0200)]
Add support for parsing HTTP status code response

13 years agoAdd support for HTTP header parsing and body content
Marcel Holtmann [Sat, 30 Oct 2010 21:25:15 +0000 (23:25 +0200)]
Add support for HTTP header parsing and body content

13 years agoRemove one debug print for GWeb session flags
Marcel Holtmann [Sat, 30 Oct 2010 16:48:29 +0000 (18:48 +0200)]
Remove one debug print for GWeb session flags

13 years agoEnable close connection for the inital WISPr request
Marcel Holtmann [Sat, 30 Oct 2010 15:52:56 +0000 (17:52 +0200)]
Enable close connection for the inital WISPr request

13 years agoAdd proper support for HTTP close connection option
Marcel Holtmann [Sat, 30 Oct 2010 15:52:40 +0000 (17:52 +0200)]
Add proper support for HTTP close connection option

13 years agoAdd support for GWeb requests with IP address only URL
Marcel Holtmann [Sat, 30 Oct 2010 15:42:20 +0000 (17:42 +0200)]
Add support for GWeb requests with IP address only URL

13 years agoUpdate WISPr command line client to use GWeb
Marcel Holtmann [Sat, 30 Oct 2010 15:21:01 +0000 (17:21 +0200)]
Update WISPr command line client to use GWeb

13 years agoAdd support for setting accept option for GWeb
Marcel Holtmann [Sat, 30 Oct 2010 15:17:31 +0000 (17:17 +0200)]
Add support for setting accept option for GWeb

13 years agoUpdate error messages of GWeb test application
Marcel Holtmann [Sat, 30 Oct 2010 14:57:57 +0000 (16:57 +0200)]
Update error messages of GWeb test application

13 years agoLet the test tool use ConnMan as user agent string
Marcel Holtmann [Sat, 30 Oct 2010 13:54:10 +0000 (15:54 +0200)]
Let the test tool use ConnMan as user agent string

13 years agoAdd support for adding custom user agent string
Marcel Holtmann [Sat, 30 Oct 2010 13:53:50 +0000 (15:53 +0200)]
Add support for adding custom user agent string

13 years agoUse an unbuffered channel for HTTP and HTTPS transports
Marcel Holtmann [Sat, 30 Oct 2010 13:42:47 +0000 (15:42 +0200)]
Use an unbuffered channel for HTTP and HTTPS transports

13 years agoOnly disable encoding within GIOGnuTLS channel
Marcel Holtmann [Sat, 30 Oct 2010 13:41:54 +0000 (15:41 +0200)]
Only disable encoding within GIOGnuTLS channel

13 years agoFix handling of receive watch callback within GWeb
Marcel Holtmann [Sat, 30 Oct 2010 13:35:19 +0000 (15:35 +0200)]
Fix handling of receive watch callback within GWeb

13 years agoAdd basic support for using HTTPS within GWeb
Marcel Holtmann [Sat, 30 Oct 2010 13:28:24 +0000 (15:28 +0200)]
Add basic support for using HTTPS within GWeb

13 years agoSplit usage of gweb/gresolv.[ch] and gweb/gweb.[ch] a little bit
Marcel Holtmann [Sat, 30 Oct 2010 13:04:03 +0000 (15:04 +0200)]
Split usage of gweb/gresolv.[ch] and gweb/gweb.[ch] a little bit

13 years agoAdd basic update for GWeb request API
Marcel Holtmann [Sat, 30 Oct 2010 12:58:32 +0000 (14:58 +0200)]
Add basic update for GWeb request API

13 years agoAdd dummy HTTPS client to WISPr test program
Marcel Holtmann [Sat, 30 Oct 2010 01:21:54 +0000 (03:21 +0200)]
Add dummy HTTPS client to WISPr test program

13 years agoAdd support for g_io_channel_gnutls_new() function
Marcel Holtmann [Sat, 30 Oct 2010 01:21:13 +0000 (03:21 +0200)]
Add support for g_io_channel_gnutls_new() function

13 years agoiptables-test: Support for chain deletion
Samuel Ortiz [Fri, 29 Oct 2010 22:21:24 +0000 (00:21 +0200)]
iptables-test: Support for chain deletion

13 years agoiptables-test: Properly clean tables up
Samuel Ortiz [Fri, 29 Oct 2010 21:43:48 +0000 (23:43 +0200)]
iptables-test: Properly clean tables up

13 years agoiptables-test: Support for user defined chain jumps
Samuel Ortiz [Fri, 29 Oct 2010 18:21:18 +0000 (20:21 +0200)]
iptables-test: Support for user defined chain jumps

13 years agoiptables-test: Update entries offsets properly
Samuel Ortiz [Fri, 29 Oct 2010 15:28:47 +0000 (17:28 +0200)]
iptables-test: Update entries offsets properly

This is needed to set the jump targets.

13 years agoiptables-test: Merge rule adding routines
Samuel Ortiz [Fri, 29 Oct 2010 12:45:20 +0000 (14:45 +0200)]
iptables-test: Merge rule adding routines

There is no valid reason for separating the builtin case from the generic
one.

13 years agoAdd skeleton for WISPr command line client
Marcel Holtmann [Fri, 29 Oct 2010 18:15:54 +0000 (20:15 +0200)]
Add skeleton for WISPr command line client

13 years agoFix --with-ntpd configure option
Marcel Holtmann [Fri, 29 Oct 2010 18:10:27 +0000 (20:10 +0200)]
Fix --with-ntpd configure option

13 years agoCheck for GnuTLS library when tools are enabled
Marcel Holtmann [Fri, 29 Oct 2010 18:08:05 +0000 (20:08 +0200)]
Check for GnuTLS library when tools are enabled

13 years agogsupplicant: Start wpa_supplicant daemon through introspection request
Leena Gunda [Thu, 28 Oct 2010 23:12:21 +0000 (01:12 +0200)]
gsupplicant: Start wpa_supplicant daemon through introspection request

Fixes BMC#8750

13 years agoUse __attribute__ marking for format strings
Marcel Holtmann [Fri, 29 Oct 2010 01:51:02 +0000 (03:51 +0200)]
Use __attribute__ marking for format strings

13 years agogsupplicant: wpa_supplicant only accepts upper case EAPs.
Mohamed Abbas [Thu, 28 Oct 2010 10:38:31 +0000 (03:38 -0700)]
gsupplicant: wpa_supplicant only accepts upper case EAPs.

Fixes BMC#8792

13 years agoiptables: Use printf format for iptables_command argument
Samuel Ortiz [Thu, 28 Oct 2010 22:58:08 +0000 (00:58 +0200)]
iptables: Use printf format for iptables_command argument

13 years agoFix string array memory leaks during plugin loading
Johan Hedberg [Wed, 27 Oct 2010 20:23:10 +0000 (16:23 -0400)]
Fix string array memory leaks during plugin loading

13 years agoiptables: Initial library commit
Samuel Ortiz [Wed, 27 Oct 2010 23:14:37 +0000 (01:14 +0200)]
iptables: Initial library commit

The ConnMan iptables library provides a simple internal API for adding
netfilter chains and rules.

13 years agoAdd the openconnect plugin to the distcheck rule
Samuel Ortiz [Wed, 27 Oct 2010 09:05:54 +0000 (11:05 +0200)]
Add the openconnect plugin to the distcheck rule

13 years agoAdd vpn.* to the openconnect plugin sources
Samuel Ortiz [Wed, 27 Oct 2010 09:02:16 +0000 (11:02 +0200)]
Add vpn.* to the openconnect plugin sources

13 years agoAdd vpn.h to the plugins builtin sources
Martin Xu [Wed, 27 Oct 2010 03:00:36 +0000 (11:00 +0800)]
Add vpn.h to the plugins builtin sources

Without it the dist tarball will failt to build.

13 years agoipv4: Return 32 as a prefix length for a NULL netmask
Samuel Ortiz [Tue, 26 Oct 2010 19:27:10 +0000 (21:27 +0200)]
ipv4: Return 32 as a prefix length for a NULL netmask

13 years agodevice: Save zero scan_interval values
Matt Francomb [Tue, 26 Oct 2010 19:08:35 +0000 (21:08 +0200)]
device: Save zero scan_interval values

For some devices it makes sense to not run periodic wifi scans at all.
Although the default value is kept at 300 seconds for wifi, one should be
able to set that value to 0, and fetch it back after rebooting.

13 years agoiptables-test: Build custom rule
Samuel Ortiz [Tue, 26 Oct 2010 01:39:20 +0000 (03:39 +0200)]
iptables-test: Build custom rule

The match and target correct parsing allows for custom rule building.

13 years agoiptables-test: Inversion support
Samuel Ortiz [Mon, 25 Oct 2010 23:25:45 +0000 (01:25 +0200)]
iptables-test: Inversion support

13 years agoiptables-test: Parse targets and matches options
Samuel Ortiz [Mon, 25 Oct 2010 22:24:30 +0000 (00:24 +0200)]
iptables-test: Parse targets and matches options

The target and matches parsing routine allow for a proper xtable structure
building. Those structures then allow for an easier rule building.

13 years agoiptables-test: Add -t option support
Samuel Ortiz [Mon, 25 Oct 2010 14:15:17 +0000 (16:15 +0200)]
iptables-test: Add -t option support

This will be needed for masquerading support.

13 years agoiptables-test: Initial command line parsing
Samuel Ortiz [Mon, 25 Oct 2010 14:08:06 +0000 (16:08 +0200)]
iptables-test: Initial command line parsing

The command line options are an iptables subset.

13 years agoiptables: Replace iptables-test program
Samuel Ortiz [Fri, 22 Oct 2010 22:09:30 +0000 (00:09 +0200)]
iptables: Replace iptables-test program

The new iptables-test no longer links against the unstable libiptc
library. A link against libxtables is still necessary as the iptables
extensions are only registered against iptables through this library.
Not using it would mean replicating any of the extensions ConnMan could
potentially need.

13 years agoSplit openconnect into generic vpn and openconnect part
Daniel Wagner [Fri, 22 Oct 2010 17:55:53 +0000 (13:55 -0400)]
Split openconnect into generic vpn and openconnect part

13 years agoAdd provider driver name accessor
Daniel Wagner [Fri, 22 Oct 2010 17:55:52 +0000 (13:55 -0400)]
Add provider driver name accessor

13 years agogsupplicant: Get all BSSs when scan is done
Leena Gunda [Fri, 22 Oct 2010 09:53:39 +0000 (11:53 +0200)]
gsupplicant: Get all BSSs when scan is done

After a scan, all BSSs need to be refreshed and passed back to the device
layer or else the WiFi device networks list is emptied.

Fixes BMC#8324
Fixes BMC#8363