framework/connectivity/connman.git
11 years agoUpstream: web: Make debug func print more useful information
Jukka Rissanen [Thu, 18 Oct 2012 11:35:19 +0000 (14:35 +0300)]
Upstream: web: Make debug func print more useful information

The file and function name are printed in debug prints.

11 years agoUpstream gweb: Make sure to destroy the lookup before calling any result function
Tomasz Bursztyka [Fri, 11 Jan 2013 12:37:05 +0000 (14:37 +0200)]
Upstream gweb: Make sure to destroy the lookup before calling any result function

Program received signal SIGSEGV, Segmentation fault.
Backtrace:
0  0x00000000004219fe in _debug (resolv=0x75f9a0, file=0x497267 "gweb/gresolv.c",
    caller=0x497598 "destroy_lookup",
    format=0x497278 "lookup %p id %d ipv4 %p ipv6 %p") at gweb/gresolv.c:136
1  0x0000000000421ac5 in destroy_lookup (lookup=0x760e40) at gweb/gresolv.c:154
2  0x00000000004224ce in sort_and_return_results (lookup=0x760e40) at gweb/gresolv.c:520
3  0x0000000000422597 in query_timeout (user_data=0x760510) at gweb/gresolv.c:542
4  0x00007ffff7b1b26b in g_timeout_dispatch (source=0x760ea0, callback=<optimized out>,
    user_data=<optimized out>) at gmain.c:4095
5  0x00007ffff7b1a643 in g_main_dispatch (context=0x6f5110) at gmain.c:2784
6  g_main_context_dispatch (context=0x6f5110) at gmain.c:3288
7  0x00007ffff7b1a988 in g_main_context_iterate (dispatch=1, block=<optimized out>,
    context=0x6f5110, self=<optimized out>) at gmain.c:3359
8  g_main_context_iterate (context=0x6f5110, block=<optimized out>, dispatch=1,
    self=<optimized out>) at gmain.c:3296
9  0x00007ffff7b1ade5 in g_main_loop_run (loop=0x6f4fe0) at gmain.c:3553
10 0x0000000000442a5f in main (argc=1, argv=0x7fffffffdea8) at src/main.c:705

Reported by Daniel Wagner

11 years agoUpstream: gresolv: Remove query from queue before destroying the query
Jukka Rissanen [Thu, 18 Oct 2012 11:35:18 +0000 (14:35 +0300)]
Upstream: gresolv: Remove query from queue before destroying the query

The order of actions is important here.

11 years agoUpstream: gresolv: Make sure we will not receive DNS data after closing
Jukka Rissanen [Thu, 18 Oct 2012 11:35:17 +0000 (14:35 +0300)]
Upstream: gresolv: Make sure we will not receive DNS data after closing

We must close the channel when freeing the resolver object,
otherwise we might still receive data when the resolver has been
freed already.

Fixes BMC#25757

11 years agoUpstream: gresolv: Add more debug prints
Jukka Rissanen [Thu, 18 Oct 2012 11:35:16 +0000 (14:35 +0300)]
Upstream: gresolv: Add more debug prints

11 years agoUpstream: gresolv: Make debug func print more useful information
Jukka Rissanen [Thu, 18 Oct 2012 11:35:15 +0000 (14:35 +0300)]
Upstream: gresolv: Make debug func print more useful information

The file and function names are printed in debug prints.

11 years agoUpstream: gresolv: Remove the lookup for real
Jukka Rissanen [Tue, 16 Oct 2012 14:19:25 +0000 (17:19 +0300)]
Upstream: gresolv: Remove the lookup for real

The call to g_resolv_cancel_lookup() will do nothing
because we just removed the lookup from the queue.
The fix is to remove the lookup directly and not call
the cancel function.

11 years agoUpstream: gresolv: Remove all pending lookups when resolver is removed
Jukka Rissanen [Mon, 15 Oct 2012 10:36:04 +0000 (13:36 +0300)]
Upstream: gresolv: Remove all pending lookups when resolver is removed

Remove all lookups found in queue when GResolv object is removed.

11 years agoUpstream: gresolv: Remove lookup from correct queue
Jukka Rissanen [Thu, 11 Oct 2012 10:45:41 +0000 (13:45 +0300)]
Upstream: gresolv: Remove lookup from correct queue

The lookup must be removed from lookup queue and not from query
queue when cancelling the lookup. Otherwise it is possible that
we might access an already removed lookup that is still found in
lookup queue.

Fixes BMC#25728

11 years agoUpstream: gresolv: Use predefined mnemonics rather than magic numbers
Grant Erickson [Mon, 16 Jul 2012 16:48:10 +0000 (09:48 -0700)]
Upstream: gresolv: Use predefined mnemonics rather than magic numbers

Use predefined mnemonics from arpa/nameserv.h for the return value from
ns_msg_getflag rather than magic numbers.

11 years agoUpstream: gresolv: Do not update successful status with unsuccessful one
Jaehyun Kim [Sat, 6 Apr 2013 13:24:51 +0000 (22:24 +0900)]
Upstream: gresolv: Do not update successful status with unsuccessful one

When performing a resolver lookup from timeserver or wpad, both perform
queries with an unspecified address family. This means that both A and
AAAA record queries are issued. In cases where a valid, successful A
response comes back but where the AAAA query results in a timeout, do
not smash the successful A status with the time out AAAA status;
otherwise, the timeserver or wpad will appear to fail to them when, in
fact, the A query was successful and more than satisfies its unspecified
address family requirement.

Partial fix for BMC#25486.

Change-Id: I9fae2d185a81bb5a91e8221207d087749f15009f

11 years agoUpstream: gresolve: Fix a typo in conditional check for returning results
Jaehyun Kim [Sat, 6 Apr 2013 13:12:23 +0000 (22:12 +0900)]
Upstream: gresolve: Fix a typo in conditional check for returning results

In both parse_response and query_timeout there exists logic that checks
to ensure that both an A and AAAA lookups have either been responded to
or timed out before processing and returning results to the caller. In
query_timeout, there was a typo in the condition check such that it did
not match those conditions tested in parse_response.

11 years agoFix incorrect encryption mode
Jaehyun Kim [Fri, 5 Apr 2013 06:22:53 +0000 (15:22 +0900)]
Fix incorrect encryption mode

Change-Id: I413ea389214863a930a9578544e677fa3bca5b43

11 years agoVersion update
Jaehyun Kim [Thu, 4 Apr 2013 08:59:24 +0000 (17:59 +0900)]
Version update

11 years agoUpstream: bluetooth: Add the device into hash table when relevant
Tomasz Bursztyka [Thu, 16 Aug 2012 13:36:37 +0000 (16:36 +0300)]
Upstream: bluetooth: Add the device into hash table when relevant

Fixes BMC#25215

Change-Id: Ic06d2a9eb49802e0b4e97ffe83acd8d19da3e3c4

11 years agoUpstream: bluetooth: Add device to hash before registration
Gustavo Padovan [Thu, 9 Aug 2012 21:57:25 +0000 (18:57 -0300)]
Upstream: bluetooth: Add device to hash before registration

During the connman_device_register() procedure a lookup to the
bluetooth_devices hash table happens, however the device is not on the
hash at this point and the look out fails.

If the registration fails, technology_disable() returns the Failed
message on D-Bus with the error status zero. That happens because we
don't have any device registered.

This patch moves the insertion of the device to before the device
registration.

Change-Id: Iaa0bd5b878e7bcbfdd4518f042da2fd740861bbe

11 years agoUse MaxScanSSID to make a hidden auto connection
Jaehyun Kim [Wed, 27 Mar 2013 12:16:14 +0000 (21:16 +0900)]
Use MaxScanSSID to make a hidden auto connection

11 years agoFix MMS sending failure
Jaehyun Kim [Thu, 21 Mar 2013 06:09:44 +0000 (15:09 +0900)]
Fix MMS sending failure

Not use ipconfig index for searching service
because ConnMan cannot find correct service if it has same ipconfig index

11 years agomerge with master
Jinkun Jang [Fri, 15 Mar 2013 16:13:13 +0000 (01:13 +0900)]
merge with master

11 years agosync
Jinkun Jang [Wed, 13 Mar 2013 00:24:46 +0000 (09:24 +0900)]
sync

11 years agosync
Jinkun Jang [Wed, 13 Mar 2013 00:24:21 +0000 (09:24 +0900)]
sync

11 years agoTizen 2.1 base
Jinkun Jang [Tue, 12 Mar 2013 16:47:13 +0000 (01:47 +0900)]
Tizen 2.1 base

16 years agoInitial revision
Marcel Holtmann [Sat, 22 Dec 2007 19:47:27 +0000 (20:47 +0100)]
Initial revision