Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
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>.
|
|
|
|
|
|
|
|
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>.
|
|
When fixing up the loopback address or netmask, log what is being
fixed up.
|
|
Use preassigned globals for the loopback address and netmask rather
than creating and assigning additional temporaries.
|
|
Return a more descriptive -errno rather than -1 when we fail to create
a socket.
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
The autoconnect machine can potentially start from
__connman_service_create_from_network() so it needs a network driver.
|
|
|
|
|
|
And copy the timezone file over.
Fixes BMC #18887
|
|
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.
|
|
|
|
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.
|
|
|
|
It's not ready when the technology is connected. The ASSOC->READY transition
will happen through the IP bound ops.
|
|
|
|
|
|
|
|
|
|
The device search is based on the service type, not on the device type.
Fixes BMC#18747
|
|
|
|
Also, fall back to IPv6 when the IPv4 method is not supported.
|
|
|
|
Adding the capability to restrict DNS queries to a specific address family
through gresolv_set_address_family(). By default, AF_UNSPEC is applied.
|
|
|
|
The items on session->service_list GSequence are of type
service_entry. Fix sorting function to cast the items correctly.
|
|
|
|
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.
|
|
|
|
|
|
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.
|
|
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
|
|
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.
|
|
|
|
|
|
|