platform/upstream/connman.git
13 years agobuild: Remove g_dhcp_* from list of exported symbols
Marcel Holtmann [Mon, 1 Aug 2011 10:21:09 +0000 (12:21 +0200)]
build: Remove g_dhcp_* from list of exported symbols

13 years agowifi: Use agent provided credentials as a fallback
Henri Bragge [Thu, 28 Jul 2011 14:20:31 +0000 (17:20 +0300)]
wifi: Use agent provided credentials as a fallback

13 years agoservice: Store agent provided credentials separately
Henri Bragge [Thu, 28 Jul 2011 14:20:30 +0000 (17:20 +0300)]
service: Store agent provided credentials separately

Add new fields for agent provided identity/passphrase in service struct
(agent_identity/agent_passphrase) and network ("WiFi.AgentIdentity" and
"WiFi.AgentPassphrase").

Preparing these values in prepare_8021x() is left out because the same
thing is done in request_input_cb(), which is where the values always
come from.

13 years agonetwork: Remove connman_network_set_pac()
Samuel Ortiz [Thu, 28 Jul 2011 15:59:21 +0000 (17:59 +0200)]
network: Remove connman_network_set_pac()

This routine is not used.

13 years agoservice: Propagate changes of proxy auto-config url over DBus
Henri Bragge [Thu, 28 Jul 2011 15:22:45 +0000 (18:22 +0300)]
service: Propagate changes of proxy auto-config url over DBus

13 years agoservice: Enable clearing of proxy auto-config url
Henri Bragge [Thu, 28 Jul 2011 15:22:44 +0000 (18:22 +0300)]
service: Enable clearing of proxy auto-config url

This could introduce a need to null-check values where this function
is used (src/dhcp.c, src/network.c, src/provider.c). However, src/dhcp.c
requires that URL can be cleared.

13 years agoAUTHORS: Mention Bertrand's contributions
Samuel Ortiz [Thu, 28 Jul 2011 10:18:01 +0000 (12:18 +0200)]
AUTHORS: Mention Bertrand's contributions

13 years agoofono: Network name is empty when operator is not available
Bertrand Aygon [Thu, 28 Jul 2011 10:14:23 +0000 (12:14 +0200)]
ofono: Network name is empty when operator is not available

When the operator is not available and the network name is left to NULL,
the service is built with the hidden flag set.
The operator name will be updated whenever oFono passes it to ConnMan.

13 years agonetwork: Set driver pointer to NULL back if not ready
Daniel Wagner [Thu, 28 Jul 2011 10:08:40 +0000 (12:08 +0200)]
network: Set driver pointer to NULL back if not ready

The network_probe() function will be called several times until it
creates successfuly the service object.

In the case of the oFono plugin, the connman_device_add_network() is
called after the driver has been registered to the network. Therefore
the network->driver has been set but no device yet.
__connman_service_create_from_network() returns -EINVAL because
the device is not yet set.

The next call on network_probe() will bail out on 'if (network->driver
!= NULL) return -EALREADY;' so we have to reset it in the first round.

Fixes BMC #21705

13 years agoservice : Fix put data on null pointer
Thierry Boureille [Thu, 28 Jul 2011 00:35:05 +0000 (02:35 +0200)]
service : Fix put data on null pointer

when using ConnectService of Manager interface a segfault arises due
to a null pointer.

in __connman_service_create_and_connect:

[...]
service = lookup_by_identifier(name);

if (service != NULL)
goto done;

network = create_hidden_wifi(device, ssid, mode, security);
if (network != NULL) {
connman_network_set_group(network, group);
service->network_created = TRUE;
}
[...]
in this part "service" is null

13 years agonetwork: Fix double free in network_destruct()
Daniel Wagner [Mon, 25 Jul 2011 14:24:36 +0000 (16:24 +0200)]
network: Fix double free in network_destruct()

13 years agoofono: Fix network owner ship
Daniel Wagner [Mon, 25 Jul 2011 14:24:40 +0000 (16:24 +0200)]
ofono: Fix network owner ship

13 years agonetwork: Do not unref network
Daniel Wagner [Mon, 25 Jul 2011 14:24:39 +0000 (16:24 +0200)]
network: Do not unref network

13 years agowifi: Fix network owner ship
Daniel Wagner [Mon, 25 Jul 2011 14:24:38 +0000 (16:24 +0200)]
wifi: Fix network owner ship

13 years agobluetooth: Fix remove device/network
Daniel Wagner [Mon, 25 Jul 2011 14:24:37 +0000 (16:24 +0200)]
bluetooth: Fix remove device/network

13 years agodevice: Reorder cleanup
Daniel Wagner [Mon, 25 Jul 2011 14:24:35 +0000 (16:24 +0200)]
device: Reorder cleanup

If free_network is called before the driver->disable() callback
the device has been removed from the networking structure.

13 years agobluetooth: Unref network objects
Daniel Wagner [Mon, 25 Jul 2011 14:24:34 +0000 (16:24 +0200)]
bluetooth: Unref network objects

The bluetooth plugin creates the network object therefore
it should also unref (destroy) it.

13 years agodevice: Change signature of connman_device_remove_network()
Daniel Wagner [Mon, 25 Jul 2011 14:24:33 +0000 (16:24 +0200)]
device: Change signature of connman_device_remove_network()

13 years agoethernet: Take ownership of network objects
Daniel Wagner [Mon, 25 Jul 2011 14:24:32 +0000 (16:24 +0200)]
ethernet: Take ownership of network objects

Therefore destroy network objects when the carrier goes offline.

13 years agodevice: Remove needless call to __connman_network_set_device()
Daniel Wagner [Mon, 25 Jul 2011 14:24:31 +0000 (16:24 +0200)]
device: Remove needless call to __connman_network_set_device()

13 years agonetwork: Remove connman_network_register/unregister()
Daniel Wagner [Mon, 25 Jul 2011 14:24:30 +0000 (16:24 +0200)]
network: Remove connman_network_register/unregister()

Since the service object doesn't take a reference the
intermediate step of having a connman_network_register/unregister
is not needed. This function are only there to have an additional
step where probe()/remove() will be called. This is the job of
connman_device_add_network()/connman_device_remove_network().

13 years agoservice: Don't ref/unref network objects
Daniel Wagner [Mon, 25 Jul 2011 14:24:29 +0000 (16:24 +0200)]
service: Don't ref/unref network objects

which were created by the plugins. The hidden wifi
networks will be created by service and therefore
service is the owner of the network objects and
does the unref when the service is destroyed.

13 years agoservice: Update network pointer in service
Daniel Wagner [Mon, 25 Jul 2011 14:24:28 +0000 (16:24 +0200)]
service: Update network pointer in service

13 years agodevice: Fix a inbalance of ref/unref of network objects
Daniel Wagner [Mon, 25 Jul 2011 14:24:27 +0000 (16:24 +0200)]
device: Fix a inbalance of ref/unref of network objects

The destroy callback of the hash table (device->networks)
will unref and unregister the network object.

13 years agoservice: Fix memory leak
Daniel Wagner [Mon, 25 Jul 2011 14:24:26 +0000 (16:24 +0200)]
service: Fix memory leak

valgrind reports that __connman_service_nameservers_remove leaks
memory.

g_strv_length already returns the right size of the new array.

13 years agodhcp: Fix memory leak
Daniel Wagner [Mon, 25 Jul 2011 14:24:25 +0000 (16:24 +0200)]
dhcp: Fix memory leak

Reported by valgrind.

13 years agodhcp: Fix cleanup
Daniel Wagner [Mon, 25 Jul 2011 14:37:12 +0000 (16:37 +0200)]
dhcp: Fix cleanup

__connman_dhcp_cleanup() is called early in the shutdown process
(before device or network).

13 years agonetwork: Stop DHCP
Daniel Wagner [Mon, 25 Jul 2011 14:24:23 +0000 (16:24 +0200)]
network: Stop DHCP

If DHCP has been started for the IPv4 IP configuration we should also
stop it later.

The only place where it has been done so far was in
__connman_network_clear_ipconfig() which is called from
service.c:set_ipconfig(). But this will only be called if the user
changes service settings.

13 years agogweb: Fix gnutls_priority_set_direct() for various GnuTLS versions
Marcel Holtmann [Sun, 24 Jul 2011 20:51:03 +0000 (22:51 +0200)]
gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions

13 years agodnsproxy: Add error print when DNS response send failed.
Jukka Rissanen [Fri, 22 Jul 2011 07:53:48 +0000 (10:53 +0300)]
dnsproxy: Add error print when DNS response send failed.

13 years agogsupplicant: set the cipher even if security is WEP
Julien Massot [Thu, 21 Jul 2011 11:46:39 +0000 (11:46 +0000)]
gsupplicant: set the cipher even if security is WEP

This patch fix an issue with WEP40, i tested it with WEP40 WEP104 and open AP.

It set the group cipher even if security is WEP otherwise connman won't connect to WEP40 service.

13 years agoiptables: Work around API breakage introduced in iptables 1.4.11
Stefan Schmidt [Wed, 20 Jul 2011 14:46:06 +0000 (16:46 +0200)]
iptables: Work around API breakage introduced in iptables 1.4.11

The xtables_merge_options() paramter list got extended without version bump.
These clumsy #ifdef's make it possible to work with newer and older iptables
libraries. It got inspired from an iproute2 patch:
https://bugs.gentoo.org/attachment.cgi?id=276401

Once all distributions start to carry 1.4.11 it can be considered to bump the
minimum version for connman and remove these ifdef's.

13 years agoRelease 0.76 0.76
Marcel Holtmann [Tue, 19 Jul 2011 22:32:08 +0000 (00:32 +0200)]
Release 0.76

13 years agobuild: Use color output for unit tests
Marcel Holtmann [Tue, 19 Jul 2011 22:24:41 +0000 (00:24 +0200)]
build: Use color output for unit tests

13 years agobuild: Add forgotten binaries to .gitignore
Marcel Holtmann [Tue, 19 Jul 2011 22:22:49 +0000 (00:22 +0200)]
build: Add forgotten binaries to .gitignore

13 years agobuild: Remove wifi-scan testing utility
Marcel Holtmann [Tue, 19 Jul 2011 22:20:58 +0000 (00:20 +0200)]
build: Remove wifi-scan testing utility

13 years agoservice: wpad only run on ipv4
Tomasz Bursztyka [Tue, 19 Jul 2011 10:56:19 +0000 (13:56 +0300)]
service: wpad only run on ipv4

13 years agoservice: clear ipconfig data and operations on free
Grant Erickson [Tue, 19 Jul 2011 00:48:39 +0000 (17:48 -0700)]
service: clear ipconfig data and operations on free

Ensure ipconfig data and operations are cleared out when a service is
freed.

This is at least a partial fix and maybe a full fix for issues 21000
<http://bugs.meego.com/show_bug.cgi?id=21000> and 21285
<http://bugs.meego.com/show_bug.cgi?id=21285>.

13 years agobuild: Remove no longer needed build magic
Marcel Holtmann [Mon, 18 Jul 2011 08:07:55 +0000 (10:07 +0200)]
build: Remove no longer needed build magic

13 years agobuild: Use BUILT_SOURCES for generating header files
Marcel Holtmann [Mon, 18 Jul 2011 08:03:29 +0000 (10:03 +0200)]
build: Use BUILT_SOURCES for generating header files

13 years agobuild: Check for signalfd support
Marcel Holtmann [Sun, 17 Jul 2011 17:39:27 +0000 (19:39 +0200)]
build: Check for signalfd support

13 years agoloopback: Recover Loopback on Setup when Up but No Address
Grant Erickson [Fri, 15 Jul 2011 17:21:34 +0000 (10:21 -0700)]
loopback: Recover Loopback on Setup when Up but No Address

It is possible to end up in situations in which the loopback interface
is up but has no valid address. In that case, we expect SIOCGIFADDR
will return EADDRNOTAVAIL and valid_loopback should return FALSE such
that connman can add a loopback address back to the interface.

This is a partial fix for bug 21001
<https://bugs.meego.com/show_bug.cgi?id=21001>.

13 years agoloopback: Improve Error Reporting when Recovering Loopback
Grant Erickson [Fri, 15 Jul 2011 17:21:33 +0000 (10:21 -0700)]
loopback: Improve Error Reporting when Recovering Loopback

When fixing up the loopback address or netmask, log what is being
fixed up.

13 years agoloopback: Use Existing Loopback Globals Rather than Temporaries
Grant Erickson [Fri, 15 Jul 2011 17:21:32 +0000 (10:21 -0700)]
loopback: Use Existing Loopback Globals Rather than Temporaries

Use preassigned globals for the loopback address and netmask rather
than creating and assigning additional temporaries.

13 years agoloopback: Return a More Descriptive Error Code
Grant Erickson [Fri, 15 Jul 2011 17:21:31 +0000 (10:21 -0700)]
loopback: Return a More Descriptive Error Code

Return a more descriptive -errno rather than -1 when we fail to create
a socket.

13 years agoservice: Do not iterate over NULL service list
Daniel Wagner [Tue, 12 Jul 2011 14:55:24 +0000 (16:55 +0200)]
service: Do not iterate over NULL service list

13 years agonetwork: Remove unused function
Daniel Wagner [Fri, 8 Jul 2011 10:32:21 +0000 (12:32 +0200)]
network: Remove unused function

13 years agoservice: Fix whitespace damage
Daniel Wagner [Fri, 8 Jul 2011 10:32:20 +0000 (12:32 +0200)]
service: Fix whitespace damage

13 years agoprovider: Fix ident memory leak if provider cannot be created
Patrik Flykt [Tue, 12 Jul 2011 11:00:50 +0000 (14:00 +0300)]
provider: Fix ident memory leak if provider cannot be created

13 years agoservice: Cleanup fix
Daniel Wagner [Tue, 12 Jul 2011 09:47:05 +0000 (11:47 +0200)]
service: Cleanup fix

When the system shuts downn, we destroy the service_list.  The destroy
callback on the service_list sequence is service_free() which will
call the provider code. Provider wants to iterater over the
service_list we are currently freeing. This results into a crash.

#0  0x0000003edd680991 in __strlen_sse2 () from /lib64/libc.so.6
#1  0x0000003ee0a280fb in ?? () from /lib64/libdbus-1.so.3
#2  0x0000003ee0a15f19 in ?? () from /lib64/libdbus-1.so.3
#3  0x0000003ee0a19c0a in dbus_message_iter_append_basic () from /lib64/libdbus-1.so.3
#4  0x000000000043985b in append_path (value=0x6a7800, user_data=0x7fffffffe350)
    at src/service.c:121
#5  0x0000003edf65af07 in g_sequence_foreach_range () from /lib64/libglib-2.0.so.0
#6  0x0000000000439888 in __connman_service_list (iter=0x7fffffffe350, user_data=0x0)
    at src/service.c:127
#7  0x000000000045971e in connman_dbus_property_append_array (iter=0x7fffffffe440, key=
    0x472cd8 "Services", type=111, function=0x439860 <__connman_service_list>, user_data=0x0)
    at src/dbus.c:204
#8  0x000000000045990a in connman_dbus_property_changed_array (path=0x472ca0 "/", interface=
    0x472c8c "net.connman.Manager", key=0x472cd8 "Services", type=111, function=
    0x439860 <__connman_service_list>, user_data=0x0) at src/dbus.c:271
#9  0x00000000004391cd in services_changed (user_data=0x0) at src/profile.c:120
#10 0x000000000043924c in __connman_profile_changed (delayed=0) at src/profile.c:143
#11 0x000000000043f467 in service_free (user_data=0x6aab40) at src/service.c:2951
#12 0x0000003edf65aac8 in ?? () from /lib64/libglib-2.0.so.0
#13 0x0000003edf65aaa2 in ?? () from /lib64/libglib-2.0.so.0
#14 0x0000003edf65ae39 in g_sequence_free () from /lib64/libglib-2.0.so.0
#15 0x000000000044459f in __connman_service_cleanup () at src/service.c:5432
#16 0x000000000042ef5f in main (argc=1, argv=0x7fffffffe6b8) at src/main.c:412

13 years agoprovider: Untangle create and connect code block
Marcel Holtmann [Tue, 12 Jul 2011 09:48:11 +0000 (11:48 +0200)]
provider: Untangle create and connect code block

13 years agoprovider: Remove pointless jump to error label
Marcel Holtmann [Tue, 12 Jul 2011 09:39:04 +0000 (11:39 +0200)]
provider: Remove pointless jump to error label

This fixes a compiler warning for an uninitialized variable. And this
warning is a real error.

  CC     src/provider.o
src/provider.c: In function ‘__connman_provider_create_and_connect’:
src/provider.c:476: warning: ‘provider’ may be used uninitialized in this function

13 years agonetwork: Set network driver before creating the service
Samuel Ortiz [Sat, 9 Jul 2011 00:24:51 +0000 (02:24 +0200)]
network: Set network driver before creating the service

The autoconnect machine can potentially start from
__connman_service_create_from_network() so it needs a network driver.

13 years agoservice: disconnect state has priority over online one.
Tomasz Bursztyka [Fri, 8 Jul 2011 17:04:37 +0000 (20:04 +0300)]
service: disconnect state has priority over online one.

13 years agoservice: preventing to call ready state more than once.
Tomasz Bursztyka [Fri, 8 Jul 2011 16:31:03 +0000 (19:31 +0300)]
service: preventing to call ready state more than once.

13 years agotimezone: Remove /etc/localtime if it's a symbolic link
Yu A Wang [Fri, 8 Jul 2011 17:15:37 +0000 (19:15 +0200)]
timezone: Remove /etc/localtime if it's a symbolic link

And copy the timezone file over.

Fixes BMC #18887

13 years agodevice: Ignore dummy networking devices
Samuel Ortiz [Fri, 8 Jul 2011 16:34:15 +0000 (18:34 +0200)]
device: Ignore dummy networking devices

When a kernel comes with dummy network devices support enabled, the
dummy interface will take the default route whenever a real interface
disconnects.
This is not what we want as the default route won't be released then.

13 years agonetwork: Fix temp pointer memory leak
Samuel Ortiz [Fri, 8 Jul 2011 16:19:49 +0000 (18:19 +0200)]
network: Fix temp pointer memory leak

13 years agonetwork: Let the gateway code handle the READY transition
Samuel Ortiz [Fri, 8 Jul 2011 09:33:18 +0000 (11:33 +0200)]
network: Let the gateway code handle the READY transition

For IPv4 (DHCP, fixed or manual), and for manual IPv6, the gateway handling
code (connection.c) is the one responsible for moving to the READY state.

13 years agoipconfig: Don't call IP bound ops when type does not match
Samuel Ortiz [Fri, 8 Jul 2011 00:21:43 +0000 (02:21 +0200)]
ipconfig: Don't call IP bound ops when type does not match

13 years agonetwork: Autoconf IPv6 is ready when address is set
Samuel Ortiz [Fri, 8 Jul 2011 00:25:14 +0000 (02:25 +0200)]
network: Autoconf IPv6 is ready when address is set

It's not ready when the technology is connected. The ASSOC->READY transition
will happen through the IP bound ops.

13 years agoservice: Separate ipconfig state and service state handling
Tomasz Bursztyka [Fri, 8 Jul 2011 00:12:00 +0000 (02:12 +0200)]
service: Separate ipconfig state and service state handling

13 years agoservice: Use __connman_service_ipconfig_indicate_state()
Daniel Wagner [Thu, 7 Jul 2011 16:47:26 +0000 (19:47 +0300)]
service: Use __connman_service_ipconfig_indicate_state()

13 years agoservice: Add __connman_service_ipconfig_indicate_state()
Daniel Wagner [Thu, 7 Jul 2011 16:47:25 +0000 (19:47 +0300)]
service: Add __connman_service_ipconfig_indicate_state()

13 years agomonitor-connman: Parse Notification messages
Daniel Wagner [Thu, 7 Jul 2011 16:47:24 +0000 (19:47 +0300)]
monitor-connman: Parse Notification messages

13 years agodevice: Get service type from __connman_device_find_device
Samuel Ortiz [Thu, 7 Jul 2011 14:49:09 +0000 (16:49 +0200)]
device: Get service type from __connman_device_find_device

The device search is based on the service type, not on the device type.

Fixes BMC#18747

13 years agodnsproxy: Fix indentation.
Jukka Rissanen [Wed, 6 Jul 2011 10:26:11 +0000 (13:26 +0300)]
dnsproxy: Fix indentation.

13 years agoofono: Set IPv4 address if IPv6 method is not supported
Thierry Boureille [Wed, 6 Jul 2011 17:41:10 +0000 (19:41 +0200)]
ofono: Set IPv4 address if IPv6 method is not supported

Also, fall back to IPv6 when the IPv4 method is not supported.

13 years agogweb: Apply address family restiction to resolver
Tomasz Bursztyka [Mon, 4 Jul 2011 11:34:57 +0000 (14:34 +0300)]
gweb: Apply address family restiction to resolver

13 years agogresolv: Queries address family scope restriction
Tomasz Bursztyka [Mon, 4 Jul 2011 11:34:56 +0000 (14:34 +0300)]
gresolv: Queries address family scope restriction

Adding the capability to restrict DNS queries to a specific address family
through gresolv_set_address_family(). By default, AF_UNSPEC is applied.

13 years agosession: Service type to bearer string conversion support
Patrik Flykt [Fri, 1 Jul 2011 08:01:11 +0000 (11:01 +0300)]
session: Service type to bearer string conversion support

13 years agosession: Correct GSequence sorting to use service_entry structs
Patrik Flykt [Fri, 1 Jul 2011 08:01:10 +0000 (11:01 +0300)]
session: Correct GSequence sorting to use service_entry structs

The items on session->service_list GSequence are of type
service_entry. Fix sorting function to cast the items correctly.

13 years agoprovider: Get 'Host' and 'VPN.Domain' from provider struct
Patrik Flykt [Fri, 1 Jul 2011 08:01:09 +0000 (11:01 +0300)]
provider: Get 'Host' and 'VPN.Domain' from provider struct

13 years agoprovider: Properly set host and domain provider members
Patrik Flykt [Fri, 1 Jul 2011 08:01:08 +0000 (11:01 +0300)]
provider: Properly set host and domain provider members

Detect 'Host' and 'VPN.Domain' strings being set and insert them
properly into the provider structure. Also ensure that the
strings corresponding to provider structure members are not
duplicated into the provider string settings hash.

13 years agoprovider: Fix memory leak; free provider->host in provider destruct
Patrik Flykt [Fri, 1 Jul 2011 08:01:07 +0000 (11:01 +0300)]
provider: Fix memory leak; free provider->host in provider destruct

13 years agomain: Move signalfd setup in its own function
Marcel Holtmann [Sat, 2 Jul 2011 04:38:14 +0000 (21:38 -0700)]
main: Move signalfd setup in its own function

13 years agomain: Use signalfd instead of plain signals
Daniel Wagner [Fri, 1 Jul 2011 16:15:40 +0000 (18:15 +0200)]
main: Use signalfd instead of plain signals

It's unsafe to call syslog in the terminat signal handler
because syslog takes an lock. So when the signal handler
kicks in and we were already in syslog, we have a nice
deadlock.

13 years agogweb: Use GnuTLS priority string to provide wide compatibility
Lucas De Marchi [Fri, 1 Jul 2011 23:50:54 +0000 (20:50 -0300)]
gweb: Use GnuTLS priority string to provide wide compatibility

This priority string will only enable SSL 3.0 and TLS 1.0 as protocols
and will disable, via the %COMPAT keyword, several TLS protocol options
that are known to cause compatibility problems.

Reference: http://www.gnu.org/software/gnutls/manual/html_node/Interoperability.html#Interoperability

13 years agogweb: Remove call to deprecated GnuTLS function
Lucas De Marchi [Fri, 1 Jul 2011 23:50:53 +0000 (20:50 -0300)]
gweb: Remove call to deprecated GnuTLS function

If we use gnutls 2.12.0 or later it's necessary to call
gnutls_transport_set_lowat() to disable the lowat functionality. Since
this function is deprecated in new versions of gnutls, call it only if
using an older version.

13 years agotethering: Update APIs to be able to use multiple private networks
Guillaume Zajac [Tue, 28 Jun 2011 13:19:12 +0000 (15:19 +0200)]
tethering: Update APIs to be able to use multiple private networks

13 years agodoc: Update private network method prototypes
Guillaume Zajac [Tue, 28 Jun 2011 13:19:11 +0000 (15:19 +0200)]
doc: Update private network method prototypes

13 years agoTODO: IPv6 gateway handling done.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:50 +0000 (13:37 +0300)]
TODO: IPv6 gateway handling done.

13 years agonetwork: Clear IPv6 autoconfigured routes when disconnected.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:49 +0000 (13:37 +0300)]
network: Clear IPv6 autoconfigured routes when disconnected.

13 years agoipconfig: Added function to enable IPv6.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:48 +0000 (13:37 +0300)]
ipconfig: Added function to enable IPv6.

13 years agonetwork: Clear interface addresses after removing gateway address.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:47 +0000 (13:37 +0300)]
network: Clear interface addresses after removing gateway address.

The reason for this patch is that service disconnect code path
is different from service change code path. In disconnect,
the __connman_ipconfig_address_remove() is called which clears the
addresses from interface. When changing from one service to another,
the function __connman_service_disconnect() is not called and thus
the interface address is not removed.
We cannot call __connman_ipconfig_address_remove() yet at this point
because it would clear addresses from internal data structures so we
use __connman_ipconfig_address_unset() instead.

13 years agoipconfig: Add function to remove address from interface.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:46 +0000 (13:37 +0300)]
ipconfig: Add function to remove address from interface.

The new function removes the address from interface but does not
touch internal data structures.

13 years agonetwork: Set manual IPv6 state and gateway.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:45 +0000 (13:37 +0300)]
network: Set manual IPv6 state and gateway.

13 years agoconnection: Separate IPv4 and IPv6 gateway and routing handling.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:44 +0000 (13:37 +0300)]
connection: Separate IPv4 and IPv6 gateway and routing handling.

13 years agonetwork: Add IPv6 associating state.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:43 +0000 (13:37 +0300)]
network: Add IPv6 associating state.

13 years agoservice: Set and clear IPv6 nameserver addresses properly.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:42 +0000 (13:37 +0300)]
service: Set and clear IPv6 nameserver addresses properly.

13 years agoinet: Added support functions for setting and clearing IPv6 gateway address.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:41 +0000 (13:37 +0300)]
inet: Added support functions for setting and clearing IPv6 gateway address.

13 years agoservice: Fixed indentation.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:40 +0000 (13:37 +0300)]
service: Fixed indentation.

13 years agoinet: Fixed indentation.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:39 +0000 (13:37 +0300)]
inet: Fixed indentation.

13 years agoinet: Changed error prints to print the error string.
Jukka Rissanen [Wed, 22 Jun 2011 10:37:38 +0000 (13:37 +0300)]
inet: Changed error prints to print the error string.

13 years agoconfig: Provision service after adding new .config files.
Mohamed Abbas [Wed, 22 Jun 2011 17:53:04 +0000 (10:53 -0700)]
config: Provision service after adding new .config files.

For now if new .config files are added connman will create
new config and but do not provision existing services. This
patch will provision existing service if any config file are
added or modified.

Fixes bug #4880.

13 years agomain: Be quiet when config file isn't found
Lucas De Marchi [Tue, 21 Jun 2011 16:42:39 +0000 (13:42 -0300)]
main: Be quiet when config file isn't found

It's ok to run ConnMann without a configuration file, so don't print an
error message when this happens.

13 years agogweb: added the capability to restrict the requests to a specific address family.
Tomasz Bursztyka [Wed, 22 Jun 2011 06:28:54 +0000 (09:28 +0300)]
gweb: added the capability to restrict the requests to a specific address family.

13 years agowifi: Fix return value of wifi_[enable/disable].
Alok Barsode [Mon, 20 Jun 2011 11:06:12 +0000 (14:06 +0300)]
wifi: Fix return value of wifi_[enable/disable].

13 years agoRevert "service: Provide a function to query immutability"
Daniel Wagner [Mon, 27 Jun 2011 09:11:49 +0000 (11:11 +0200)]
Revert "service: Provide a function to query immutability"

This reverts commit 3092bccc020d84001dd23f76fdcb449069c8f657.

Unused interface.

Reported by Henri Bragge <henri.bragge@ixonos.com>

13 years agodevice: Fix an inbalance ref/unref of network objects
Daniel Wagner [Tue, 21 Jun 2011 14:45:50 +0000 (16:45 +0200)]
device: Fix an inbalance ref/unref of network objects

The destroy callback of the hash table (device->networks)
will unref and unregister the network object.