platform/core/api/connection.git
4 years agoFix deadlock when event_callback within an API scope 72/244272/2
Nishant Chaprana [Wed, 16 Sep 2020 12:34:38 +0000 (18:04 +0530)]
Fix deadlock when event_callback within an API scope

The deadlock occurs when connection_close_profile() is called
when profile is in connecting state at libnet-client.

Code flow is as below:-
connection_close_profile
 -> _connection_libnet_close_profile
     -> net_close_connection
now  if (is_connecting == TRUE), then event callback is triggered
within connection_close_profile() scope via __net_abort_open_connection()

Change-Id: I92781b907625d541914b602b6449135d74d490db
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoModify to copy interface name for wifi profile 44/243344/1 submit/tizen/20200909.082116
hyunuk.tak [Mon, 7 Sep 2020 01:47:55 +0000 (10:47 +0900)]
Modify to copy interface name for wifi profile

Change-Id: Iaa3110f3c074d686cf9c82b22cdc142f0a972e95
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoMerge "Fix API references" into tizen submit/tizen/20200904.091644
Jaehyun Kim [Fri, 4 Sep 2020 09:15:52 +0000 (09:15 +0000)]
Merge "Fix API references" into tizen

4 years agoMerge "Print wifi security type for test" into tizen
hyunuk tak [Fri, 4 Sep 2020 01:16:28 +0000 (01:16 +0000)]
Merge "Print wifi security type for test" into tizen

4 years agoFix API references 28/243128/2
hyunuk.tak [Thu, 3 Sep 2020 08:11:31 +0000 (17:11 +0900)]
Fix API references

Change-Id: Ia9cc764cf5328b5a8d75380a7f3e8041ed434355
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoAdd log to debug statistic API 01/243001/1 accepted/tizen/unified/20200903.151727 submit/tizen/20200902.111409 submit/tizen/20200903.044940
Seonah Moon [Wed, 2 Sep 2020 10:34:20 +0000 (19:34 +0900)]
Add log to debug statistic API

Change-Id: I48816b7ba3e97b156c612a3d481b34da8ef0743a

4 years agoPrint wifi security type for test 31/242831/1
hyunuk.tak [Tue, 1 Sep 2020 06:12:05 +0000 (15:12 +0900)]
Print wifi security type for test

Change-Id: I24c7d98ac6447a7b5b1381fa75cec8c9e085f15f

4 years agoMerge "Add multi interfaces function" into tizen submit/tizen/20200901.053326
Jaehyun Kim [Tue, 1 Sep 2020 04:30:07 +0000 (04:30 +0000)]
Merge "Add multi interfaces function" into tizen

4 years agoAdd multi interfaces function 87/242487/5
hyunuk.tak [Thu, 27 Aug 2020 07:48:34 +0000 (16:48 +0900)]
Add multi interfaces function

Change-Id: I57f3d5b46361a9383c1e25cd2c11b8ffaa6660f9
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoMerge "added validity check for connection handle if connection handle is null, then...
Jaehyun Kim [Fri, 28 Aug 2020 14:14:40 +0000 (14:14 +0000)]
Merge "added validity check for connection handle if connection handle is null, then _connection_unset_cs_tid() will be crash." into tizen

4 years agoAdd missing description for NOT_SUPPORTED error 59/242059/2 accepted/tizen/unified/20200828.121551 submit/tizen/20200827.063013 submit/tizen/20200828.021752
Cheoleun Moon [Mon, 24 Aug 2020 01:41:36 +0000 (10:41 +0900)]
Add missing description for NOT_SUPPORTED error

Change-Id: Ic6f16373197f3a0444e1c58057e85ef5768414c2

4 years agoChange privilege of route related APIs 41/240141/6
Cheoleun Moon [Tue, 4 Aug 2020 01:55:31 +0000 (10:55 +0900)]
Change privilege of route related APIs

Change-Id: I7ee791e00a9a5334c80b8eb68ea09bd66151cf6c

4 years agoadded validity check for connection handle 91/241191/2
Rahul Jain [Tue, 18 Aug 2020 11:02:24 +0000 (16:32 +0530)]
added validity check for connection handle
if connection handle is null, then _connection_unset_cs_tid() will be crash.

Change-Id: Iaba3160becf7b15ea9cec3127e00f1245c767229

4 years agoAdded mutex lock to fix the crash issue 45/239245/3 accepted/tizen/unified/20200727.131959 submit/tizen/20200727.053527
prasadam kumar [Thu, 23 Jul 2020 05:20:54 +0000 (10:50 +0530)]
Added mutex lock to fix the crash issue

Change-Id: Ib5fa112a23c5f23331495eaa6b4a87d01e8a2a41
Signed-off-by: prasadam kumar <prasadam.p@samsung.com>
4 years agoFix memory leak in connection_create when libnet init fails 63/237063/2 accepted/tizen/unified/20200717.124737 submit/tizen/20200716.045801
Nishant Chaprana [Wed, 24 Jun 2020 19:42:57 +0000 (01:12 +0530)]
Fix memory leak in connection_create when libnet init fails

Change-Id: I90d134ca5bae5be30d4943079de3d33f6cf6d0bd
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdd unittest for auto coverage 89/235389/4 accepted/tizen/unified/20200622.134529 submit/tizen/20200619.021002
hyunuk.tak [Thu, 4 Jun 2020 07:25:11 +0000 (16:25 +0900)]
Add unittest for auto coverage

Success [ 282 /  282]
Error   [   0 /  282]

Overall coverage rate:
 lines......: 96.2% (2539 of 2639 lines)
 functions..: 100.0% (185 of 185 functions)

Change-Id: I220aacdaca69f418b59de9f88e165028a09bbb9e
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoFixed null dereferencing 36/232436/1 accepted/tizen/unified/20200507.052341 submit/tizen/20200504.152605 submit/tizen/20200506.120225
Jaehyun Kim [Mon, 4 May 2020 15:05:53 +0000 (00:05 +0900)]
Fixed null dereferencing

Change-Id: Ie0a6e25b568109369d36041f68a4a0dcb3e13688
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoAdded APIs to support EAPoL connection. 72/230972/9 submit/tizen/20200504.135236
Niraj Kumar Goit [Thu, 16 Apr 2020 08:33:04 +0000 (14:03 +0530)]
Added APIs to support EAPoL connection.

Change-Id: Ie6cb28c31c2ad147ce371b1241b00b3969daef8e
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdded prototype of APIs for EAP over ethernet. 17/229717/6
Niraj Kumar Goit [Fri, 3 Apr 2020 04:34:31 +0000 (10:04 +0530)]
Added prototype of APIs for EAP over ethernet.

Change-Id: Ib561aa5ffbca167ac1614be5ecabf0d69b53da1b
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoFix gcc9 warning 17/220917/1 accepted/tizen/unified/20191227.142744 submit/tizen/20191226.234511
Semun Lee [Thu, 26 Dec 2019 01:42:16 +0000 (10:42 +0900)]
Fix gcc9 warning

error: '%s' directive argument is null [-Werror=format-overflow=]

Change-Id: I811c89262b91516c49601ce0e6d8d04a279edb2b
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agodoc: change reference link 00/218900/1
Seonah Moon [Fri, 29 Nov 2019 04:35:41 +0000 (13:35 +0900)]
doc: change reference link

Change-Id: I5546fbcd35297756c49c00c7c1763ec0590eb741

4 years agoRemove dead code 80/218680/1 accepted/tizen/unified/20191127.141705 submit/tizen/20191127.014557
hyunuk.tak [Wed, 27 Nov 2019 01:29:43 +0000 (10:29 +0900)]
Remove dead code

Change-Id: Ib0a2502704d3009afcd29cdde14464704f9d3401
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoAdd some LCOV macro for coverage 40/215940/3 submit/tizen/20191018.074346
hyunuk.tak [Fri, 18 Oct 2019 00:05:11 +0000 (09:05 +0900)]
Add some LCOV macro for coverage

Change-Id: I59be39d5a233dee5f51dd3f0be57e20a4772a258
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoDestroy profile handle when all connection handle is deinitialized 86/215786/1 submit/tizen/20191018.005838
hyunuk.tak [Wed, 16 Oct 2019 01:02:44 +0000 (10:02 +0900)]
Destroy profile handle when all connection handle is deinitialized

Change-Id: I79b0ef91e9dd5c6cce5007747219a4f994d7e120
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoMerge "Remove DEPRECATED connection_set_ethernet_cable_state_chaged_cb() call" into... accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.030104 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064104 accepted/tizen/unified/20191011.015511 submit/tizen/20191010.060003 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
Jaehyun Kim [Thu, 10 Oct 2019 05:58:32 +0000 (05:58 +0000)]
Merge "Remove DEPRECATED connection_set_ethernet_cable_state_chaged_cb() call" into tizen

5 years agoMerge "Fix double CONN_LOCK call leading to deadlock" into tizen
Jaehyun Kim [Thu, 10 Oct 2019 05:58:11 +0000 (05:58 +0000)]
Merge "Fix double CONN_LOCK call leading to deadlock" into tizen

5 years agoMerge "Add APIs for getting internet connection state" into tizen
Jaehyun Kim [Thu, 10 Oct 2019 05:57:48 +0000 (05:57 +0000)]
Merge "Add APIs for getting internet connection state" into tizen

5 years agoAdd APIs for getting internet connection state 94/213794/5
Jaehyun Kim [Wed, 11 Sep 2019 10:19:46 +0000 (19:19 +0900)]
Add APIs for getting internet connection state

Change-Id: I3617a5e18f45572f1fa1109d8e8820a723216361
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
5 years agoRemove DEPRECATED connection_set_ethernet_cable_state_chaged_cb() call 93/215493/1
Nishant Chaprana [Wed, 9 Oct 2019 12:26:08 +0000 (17:56 +0530)]
Remove DEPRECATED connection_set_ethernet_cable_state_chaged_cb() call

connection_set_ethernet_cable_state_chaged_cb() is deprecated and will be removed from next release.
Using connection_set_ethernet_cable_state_changed_cb() instead

Change-Id: Iae867e17dd1feb2389877d16ce2aabf2afbdcd45
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoFix double CONN_LOCK call leading to deadlock 92/215492/1
Nishant Chaprana [Wed, 9 Oct 2019 12:23:21 +0000 (17:53 +0530)]
Fix double CONN_LOCK call leading to deadlock

Change-Id: I4020c5d80514440899e0d16e05b9170e769bb478
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoFix type error. 16/213416/1 submit/tizen/20191008.125704 submit/tizen/20191010.004456
Niraj Kumar Goit [Thu, 5 Sep 2019 05:42:28 +0000 (11:12 +0530)]
Fix type error.

Change-Id: I423c3f7974965d037eb709b257c98e6d92e5163f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
5 years agoDo not pack untested gcov objects 11/208911/1 submit/tizen/20190702.011709 submit/tizen/20190708.075804
Cheoleun Moon [Mon, 1 Jul 2019 07:47:41 +0000 (16:47 +0900)]
Do not pack untested gcov objects

Change-Id: I6212a181ba033b805b23687548fec8e1c384d1d4
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoMake a gcov package for coverage 10/208910/1
Cheoleun Moon [Mon, 1 Jul 2019 07:43:10 +0000 (16:43 +0900)]
Make a gcov package for coverage

Change-Id: Id11c225597425eb2dacb5efbaaefa4b511d6328b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoAdded support of WPA3-SAE security mode. 89/207989/2
Niraj Kumar Goit [Fri, 14 Jun 2019 11:57:22 +0000 (17:27 +0530)]
Added support of WPA3-SAE security mode.

Change-Id: I98bffd6e79d1eb829aae5770b154204d4b5788aa
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
5 years agoRefactoring how to get profile list 42/203842/5 submit/tizen/20190509.021344
hyunuktak [Thu, 18 Apr 2019 05:49:53 +0000 (14:49 +0900)]
Refactoring how to get profile list

Change-Id: I4ca1c236f3ff530cf94ad56a77c008f51179be98
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd mutex lock/unlock 74/203574/7
hyunuktak [Tue, 16 Apr 2019 04:29:24 +0000 (13:29 +0900)]
Add mutex lock/unlock

It's one of the processess for multi-thread safety.

Change-Id: Id5480690d453bd962fb8fd74da14fbfbfdeeff1f
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoMake local handle for event loop 44/203344/5
hyunuktak [Fri, 12 Apr 2019 02:17:07 +0000 (11:17 +0900)]
Make local handle for event loop

It's one of the processess for multi-thread safety.

Change-Id: Ic935276933b63ebea691cdafc393ac5ce839fed9
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoGet max speed of connected AP 29/196029/1 accepted/tizen/unified/20181228.053026 submit/tizen/20181227.045513
Cheoleun Moon [Fri, 21 Dec 2018 02:17:32 +0000 (11:17 +0900)]
Get max speed of connected AP

Change-Id: Ia68e9e1e667d7beb25dda104b401ea75106d0c4b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoFix build errors 75/195075/1 accepted/tizen/unified/20181211.064642 submit/tizen/20181210.103346
Cheoleun Moon [Mon, 10 Dec 2018 10:29:19 +0000 (19:29 +0900)]
Fix build errors

Change-Id: I1d38558b99b5aaee78ab3ff9b89f64fd0b12edf1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years ago[MPTCP] Add LCOV_EXCL comments 61/191161/1
Cheoleun Moon [Fri, 12 Oct 2018 03:51:13 +0000 (12:51 +0900)]
[MPTCP] Add LCOV_EXCL comments

Change-Id: Ib6cff6394688726f11c2390ff4b96ed142de5fa8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoMerge "Suppose Device trying to connect with a wifi router which does not support... accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.013201 accepted/tizen/unified/20180907.043101 submit/tizen/20180904.110831 submit/tizen/20180906.090023 submit/tizen_5.0/20181101.000002
Jaehyun Kim [Tue, 4 Sep 2018 11:02:23 +0000 (11:02 +0000)]
Merge "Suppose Device trying to connect with a wifi router which does not support IPV6. In that Case __profile_convert_ip_to_string() function will be called for IPV6 address family and if net_info->IpAddr is passed as 1st argument, sometime garbage ip like "c0a8:5::" could be set to output variable ip_address(passed by Application)." into tizen

6 years agoMerge "Fix wrong function name" into tizen submit/tizen/20180903.045143
Jaehyun Kim [Mon, 3 Sep 2018 04:10:45 +0000 (04:10 +0000)]
Merge "Fix wrong function name" into tizen

6 years agoFix wrong function name 37/187837/2
Seonah Moon [Wed, 29 Aug 2018 01:34:17 +0000 (10:34 +0900)]
Fix wrong function name

Change-Id: I34aa6cc2574c5f7bcbb5db96772bf0734982abaf

6 years agoCheck if mptcp is supported first 14/187714/1
chleun.moon [Tue, 28 Aug 2018 04:41:02 +0000 (13:41 +0900)]
Check if mptcp is supported first

Change-Id: I814e8304cddcecde4cfae111afe5506f683e97f8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoMerge "Fix build failure" into tizen submit/tizen/20180828.011353
chleun.moon [Tue, 28 Aug 2018 01:13:15 +0000 (01:13 +0000)]
Merge "Fix build failure" into tizen

6 years agoFix build failure 26/187626/1
chleun.moon [Mon, 27 Aug 2018 04:28:53 +0000 (13:28 +0900)]
Fix build failure

Change-Id: I212feac55c19a8ebf6ea31bb1491ae577a68160e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoSuppose Device trying to connect with a wifi router which does not support IPV6. 65/187265/1
Bhaskar Dutta [Tue, 21 Aug 2018 09:20:57 +0000 (14:50 +0530)]
Suppose Device trying to connect with a wifi router which does not support IPV6.
In that Case __profile_convert_ip_to_string() function will be called for IPV6
address family and if net_info->IpAddr is passed as 1st argument, sometime garbage
ip like "c0a8:5::" could be set to output variable ip_address(passed by Application).

Change-Id: I3695f3720653c6b2b96d4766b27dfb17da44ccc2
Signed-off-by: Bhaskar Dutta <bhaskar.d@samsung.com>
6 years ago[connection] Added Tizen Wi-Fi Mesh 77/186777/1 submit/tizen/20180824.072908
Nishant Chaprana [Tue, 14 Aug 2018 07:35:05 +0000 (13:05 +0530)]
[connection] Added Tizen Wi-Fi Mesh

Change-Id: I0d4d9c44abc60609a1104b877b31f3b7fe912451
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdd new error (ACR-1257) 70/183670/6 accepted/tizen/unified/20180724.073334 submit/tizen/20180723.014622 submit/tizen/20180723.233312
taesub kim [Mon, 9 Jul 2018 23:40:54 +0000 (08:40 +0900)]
Add new error (ACR-1257)

Change-Id: I9caba25fa33c0e538c07f2ba15764927ebe25d1d
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoModified header files by tizen policy 73/183273/2 accepted/tizen/unified/20180709.064823 submit/tizen/20180706.050915
taesub kim [Wed, 4 Jul 2018 04:47:54 +0000 (13:47 +0900)]
Modified header files by tizen policy

Change-Id: Ie8f94482658d9c074bc5f8bf8a9501da6f7bb344
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoUpdate doxygen for ip config type 69/176569/1
Seonah Moon [Fri, 20 Apr 2018 04:49:09 +0000 (13:49 +0900)]
Update doxygen for ip config type

Change-Id: I0e333b36dd89cac304589369209c235255f312b8

6 years ago[ASan] Revert commit related to ASan. 09/175209/1 accepted/tizen/unified/20180423.062731 submit/tizen/20180420.003342
Denis Khalikov [Mon, 9 Apr 2018 08:13:46 +0000 (11:13 +0300)]
[ASan] Revert commit related to ASan.

Revert commit related to workaround, which was a temporary
fix for bug into GCC pass. So, this bug was fixed on the
compiler side and was related to ASan and ANHCOR sections.

Change-Id: I26b92d17e33265abc7346bf04b0b31846d420cb1

6 years ago[MPTCP] Add connection_mptcp_is_supported() 06/173506/3 accepted/tizen/unified/20180403.182502 submit/tizen/20180329.042536
chleun.moon [Thu, 22 Mar 2018 05:24:05 +0000 (14:24 +0900)]
[MPTCP] Add connection_mptcp_is_supported()

Change-Id: Ife77a96b74db82f3f32f9a0487aa4c2a68b20b78
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoMerge "[ASan] Disable sanitization for _connection_libnet_set_type_changed_cb" into... accepted/tizen/unified/20180320.141349 submit/tizen/20180318.231541 submit/tizen/20180320.043504
taesub kim [Fri, 16 Mar 2018 02:02:55 +0000 (02:02 +0000)]
Merge "[ASan] Disable sanitization for _connection_libnet_set_type_changed_cb" into tizen

6 years ago[ASan] Disable sanitization for _connection_libnet_set_type_changed_cb 41/171841/1
Denis Khalikov [Wed, 7 Mar 2018 13:53:39 +0000 (16:53 +0300)]
[ASan] Disable sanitization for _connection_libnet_set_type_changed_cb

 Workaround for error:

 #0 0xb6fb9ac7 in __GI___tls_get_addr /usr/src/debug/glibc-2.24/elf/dl-tls.c:834
 #1 0xb6a7c185 in __tls_get_addr (/usr/lib/libasan.so+0x2b185)
 #2 0xb456d5c3 in _connection_libnet_set_type_changed_cb /usr/src/debug/capi-network-connection-1.0.108/src/libnetwork.c:710
 #3 0xb4562289 in __connection_set_type_changed_callback /usr/src/debug/capi-network-connection-1.0.108/src/connection.c:152
 #4 0xb5121dfd in _suspend_init /usr/src/debug/amd-1.2.3/src/lib/amd_suspend.c:242
 #5 0xb50fd68d in __init /usr/src/debug/amd-1.2.3/src/lib/amd_main.c:342
 #6 0xb50fd68d in main /usr/src/debug/amd-1.2.3/src/lib/amd_main.c:402
 #7 0xb68df63b  (/lib/libc.so.6+0x1663b)

Change-Id: Iae412b9e938f20067a71251e3c27b215fbd1ae39

6 years agoFixed typo 98/171598/1 accepted/tizen/unified/20180307.071328 submit/tizen/20180306.081256
hyunuktak [Tue, 6 Mar 2018 07:45:57 +0000 (16:45 +0900)]
Fixed typo

Change-Id: Id7ba2356364a6ac4fdae5c4a601687555343645e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded CAPIs for C# thread handling 34/170934/1 accepted/tizen/unified/20180227.062948 submit/tizen/20180226.110934
Jaehyun Kim [Fri, 23 Feb 2018 08:27:23 +0000 (17:27 +0900)]
Added CAPIs for C# thread handling

It is not guaranteed that the GC in C# will call connection_destroy
on the thread that called connection_create.
So I added thread-independent CAPIs for init/deinit.

Change-Id: Ia70fdc543b06c34611643a702aa43377ad144365
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
6 years agoAdd Multipath TCP 80/169180/3
chleun.moon [Mon, 5 Feb 2018 02:09:22 +0000 (11:09 +0900)]
Add Multipath TCP

Change-Id: I374ced383bc1c89d764bc264a17c4400393e346b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoBug fix: connection_profile_get_ip_address() 97/165197/1 accepted/tizen/unified/20171228.065011 submit/tizen/20171227.071346
Seonah Moon [Wed, 27 Dec 2017 05:26:19 +0000 (14:26 +0900)]
Bug fix: connection_profile_get_ip_address()

Change-Id: Iba5d634a46ffd9c9bc9545180582018f1c5add54
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
6 years agoconnection: Notify network config changed from libnet-client's event 44/163644/3 accepted/tizen/unified/20171219.072628 submit/tizen/20171218.085650
Saurav Babu [Tue, 12 Dec 2017 14:23:16 +0000 (19:53 +0530)]
connection: Notify network config changed from libnet-client's event

This patch removes logic to notify network configuration changed event
by using vconf_notify_key_changed() functions. VCONF logic only works in
main thread of application, so this patch adds logic to get network
configurations changed event from libnet-client so that callbacks can be
called in respective threads.

Change-Id: I8b2faaae0d6eb14655b6675a4d25c2ae71d7ee55
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoUse preferred ipv6 address 13/163413/1 accepted/tizen/unified/20171212.064751 submit/tizen/20171211.062320
Seonah Moon [Mon, 11 Dec 2017 05:33:38 +0000 (14:33 +0900)]
Use preferred ipv6 address

Change-Id: Idda6dbe52ac4211681d26b7da2507c7dd2464e45

6 years agoAdded comment in test file 89/162789/4
taesub kim [Tue, 5 Dec 2017 09:11:07 +0000 (18:11 +0900)]
Added comment in test file

Change-Id: I7326e5952ebd82d0f2e26ac065b1e2f5be870e24
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoMerge "Added APIs get the tcp dump and network state" into tizen accepted/tizen/unified/20171206.063057 submit/tizen/20171205.053202
taesub kim [Tue, 5 Dec 2017 05:17:13 +0000 (05:17 +0000)]
Merge "Added APIs get the tcp dump and network state" into tizen

6 years agoAdded APIs get the tcp dump and network state 79/157279/11
taesub kim [Tue, 24 Oct 2017 05:00:07 +0000 (14:00 +0900)]
Added APIs get the tcp dump and network state

Change-Id: I1b12e22d94a9cd6e0874697c24b1c5f534773009
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoFixed invalid declaration 39/156739/3 accepted/tizen/unified/20171101.064649 submit/tizen/20171030.235228
taesub kim [Thu, 19 Oct 2017 22:41:00 +0000 (07:41 +0900)]
Fixed invalid declaration

Change-Id: If32ac8ec1e984f9f9f3c340bd31e7e8d27142d3b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoModified the feature check for metered network api 04/155604/1 accepted/tizen/unified/20171016.064629 submit/tizen/20171016.003519
taesub kim [Mon, 16 Oct 2017 00:05:14 +0000 (09:05 +0900)]
Modified the feature check for metered network api

Change-Id: If292d3fdcaf24cda68a59954e75f727e96a26041
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years ago[CID-44367] Remove deadcode 09/153609/2 accepted/tizen/unified/20171011.065906 submit/tizen/20171010.084928
taesub kim [Fri, 29 Sep 2017 02:15:04 +0000 (11:15 +0900)]
[CID-44367] Remove deadcode

Change-Id: Iaa2f5a6479bf1d6b5d290f91f4f1eea0eae1f17a
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoAdd new API to check whether metered or non metered 15/148715/3 accepted/tizen/unified/20170914.065440 submit/tizen/20170913.024954
Jaehyun Kim [Fri, 8 Sep 2017 10:58:37 +0000 (19:58 +0900)]
Add new API to check whether metered or non metered

Change-Id: I36909e3bea7ec991913ed1218d2489f455b01ce2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
7 years ago[connection] Added support to validate netmask address. 32/147732/2 accepted/tizen/unified/20170913.071044 submit/tizen/20170911.125730
Niraj Kumar Goit [Tue, 5 Sep 2017 10:32:14 +0000 (16:02 +0530)]
[connection] Added support to validate netmask address.

Change-Id: I901cba2c331e19eb11ada4f4ca5d709b3ce3d53d
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
7 years agoFix returned value's in connection_profile_get_dhcp_lease_duration 68/142568/2 accepted/tizen/4.0/unified/20170828.223656 accepted/tizen/unified/20170811.021103 submit/tizen/20170808.043745 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100002
Abhishek Sansanwal [Fri, 4 Aug 2017 09:21:33 +0000 (14:51 +0530)]
Fix returned value's in connection_profile_get_dhcp_lease_duration

Description: Return invalid parameter in case the
passed address of dhcp_lease_duration in NULL.
Return not supported in case CAPI is called
for IPV6 address family.

Change-Id: Iafe92b2714c9044f23665d5135e949133bb0b7c0
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
7 years agoMerge "Added connection_profile_get_dhcp_lease_duration API" into tizen
taesub kim [Thu, 3 Aug 2017 08:32:25 +0000 (08:32 +0000)]
Merge "Added connection_profile_get_dhcp_lease_duration API" into tizen

7 years agoAdded connection_profile_get_dhcp_lease_duration API 32/142232/1
Abhishek Sansanwal [Thu, 3 Aug 2017 06:32:37 +0000 (12:02 +0530)]
Added connection_profile_get_dhcp_lease_duration API

Change-Id: I428ad98cbdca4daabfcfc53d1983262903d6601a
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
7 years agoAdd CAPI to get DHCP lease duration 03/140903/3 submit/tizen/20170803.074947
Abhishek Sansanwal [Thu, 27 Jul 2017 05:55:04 +0000 (11:25 +0530)]
Add CAPI to get DHCP lease duration

Description: The following CAPI was added-
connection_profile_get_dhcp_lease_duration();

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Iffe6e0a5aa3f428b3665172ed68672d112635365

7 years ago[connection_test] Updated test menu description 34/129334/2 accepted/tizen/4.0/unified/20170816.013058 accepted/tizen/unified/20170602.154225 submit/tizen/20170601.042236 submit/tizen_4.0/20170811.094300
Seonah Moon [Tue, 16 May 2017 06:30:15 +0000 (15:30 +0900)]
[connection_test] Updated test menu description

Change-Id: I96a791bc1238253da1d3ca379e74fba9fc35ccab
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoModified API reference feature link 65/130365/1 accepted/tizen/unified/20170531.082411 submit/tizen/20170523.030944
taesub kim [Mon, 22 May 2017 06:34:55 +0000 (15:34 +0900)]
Modified API reference feature link

Change-Id: I1058f36a20bb2536a1c199be14cc576165b72c7e
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoRemoved code for IPv6 from subnet mask APIs 80/127680/1 accepted/tizen/unified/20170510.012958 submit/tizen/20170508.081935 tizen_4.0.m1_release
Seonah Moon [Fri, 28 Apr 2017 08:31:47 +0000 (17:31 +0900)]
Removed code for IPv6 from subnet mask APIs

Change-Id: Ia5135d3ce840ae03295366972163d3dea489215e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd error description to doxygen 03/126903/1 accepted/tizen/unified/20170427.015604 submit/tizen/20170426.084841
chleun.moon [Tue, 25 Apr 2017 08:31:49 +0000 (17:31 +0900)]
Add error description to doxygen

Change-Id: If87db8338ea2d654a659f2070dfd6cf3888f1126
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoFix build error 95/126495/1 accepted/tizen/unified/20170427.015556 submit/tizen/20170424.014832 submit/tizen/20170425.040532
taesub kim [Mon, 24 Apr 2017 01:03:23 +0000 (10:03 +0900)]
Fix build error

Change-Id: I5e3734cf9bb7085694fb5e0cac1766b8d9723c99
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years ago[ACR-924] Added CAPI to get DHCP Server Address 00/126400/4
taesub kim [Thu, 6 Apr 2017 08:41:55 +0000 (17:41 +0900)]
[ACR-924] Added CAPI to get DHCP Server Address

Change-Id: I34c5b09e0e8a562c4ff9d65e557b58e457c35380
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoRemove unnecessary exception description 00/126100/1
chleun.moon [Thu, 20 Apr 2017 06:16:44 +0000 (15:16 +0900)]
Remove unnecessary exception description

Change-Id: Ibe86940b933637b85c7335ed3370d6e0fbeb23b6
Signed-off-by: cheoleun <chleun.moon@samsung.com>
7 years agoMerge "Modified enumeration of cellular PDN type" into tizen
taesub kim [Thu, 20 Apr 2017 02:25:23 +0000 (19:25 -0700)]
Merge "Modified enumeration of cellular PDN type" into tizen

7 years agoModified enumeration of cellular PDN type 83/125383/6
taesub kim [Mon, 17 Apr 2017 07:18:16 +0000 (16:18 +0900)]
Modified enumeration of cellular PDN type

Change-Id: I2ad2ac07a78232456a1512bde70289cafdfc028d
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoFix errors that could be returned 07/125807/1 accepted/tizen/unified/20170419.165224 submit/tizen/20170419.041337
taesub kim [Wed, 19 Apr 2017 03:50:49 +0000 (12:50 +0900)]
Fix errors that could be returned

Change-Id: Id93463e01b4aae7055d99dd950c1c5dc17186126
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years ago[ACR-930] Added CAPI to add/remove route table 99/125799/1
taesub kim [Mon, 10 Apr 2017 09:13:00 +0000 (18:13 +0900)]
[ACR-930] Added CAPI to add/remove route table

Change-Id: Iadf8e5b78247185ac00ea2c8cc1464fecf08e89b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
7 years agoFree vconf_get_str using free() instead of g_free() 56/124056/2 accepted/tizen/unified/20170412.152330 submit/tizen/20170411.091632 submit/tizen/20170412.005740
Abhishek Sansanwal [Mon, 10 Apr 2017 05:16:00 +0000 (10:46 +0530)]
Free vconf_get_str using free() instead of g_free()

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I1ab58242e0e0b5201a9246279986cbc700dc4a1e

7 years ago[WGID-199988] Remove unreachable code 89/122889/1 accepted/tizen/unified/20170406.054215 submit/tizen/20170404.234357
Seonah Moon [Tue, 4 Apr 2017 01:33:38 +0000 (10:33 +0900)]
[WGID-199988] Remove unreachable code

Change-Id: Ib77c3194ac30d2ec7849a122cfa4626c7ab450f0
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoChange 'Feature List' link 40/122640/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170404.142824 accepted/tizen/ivi/20170404.060830 accepted/tizen/mobile/20170404.060717 accepted/tizen/tv/20170404.060748 accepted/tizen/unified/20170404.060855 accepted/tizen/wearable/20170404.060810 submit/tizen/20170404.011910
Seonah Moon [Mon, 3 Apr 2017 05:47:35 +0000 (14:47 +0900)]
Change 'Feature List' link

Change-Id: I14c30c958501f50bac3fbdeb7ba29ec9594bdb88

7 years agoFixed to get IPv6 address in address changed callback 85/121785/1 accepted/tizen/common/20170329.172456 accepted/tizen/ivi/20170329.222306 accepted/tizen/mobile/20170329.222205 accepted/tizen/tv/20170329.222229 accepted/tizen/unified/20170329.222322 accepted/tizen/wearable/20170329.222244 submit/tizen/20170329.085840
Seonah Moon [Wed, 29 Mar 2017 04:20:52 +0000 (13:20 +0900)]
Fixed to get IPv6 address in address changed callback

Change-Id: Ib6c9d6e1f9778d176b1006f5e4bc4e95ff474a34
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoReturned CONNECTION_DNS_CONFIG_TYPE_NONE when dns type is not set 70/120970/1 accepted/tizen/common/20170328.140656 accepted/tizen/ivi/20170328.060726 accepted/tizen/mobile/20170328.053722 accepted/tizen/tv/20170328.060652 accepted/tizen/unified/20170328.060739 accepted/tizen/wearable/20170328.060712 submit/tizen/20170328.004746
Seonah Moon [Mon, 27 Mar 2017 02:23:55 +0000 (11:23 +0900)]
Returned CONNECTION_DNS_CONFIG_TYPE_NONE when dns type is not set

Change-Id: I88e1fda99a5029deb4b87b4f4cb4c58d3c0a8eaf
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoMerge "Add new APIs for ethernet cable and deprecate wrong APIs" into tizen accepted/tizen/common/20170324.122844 accepted/tizen/ivi/20170324.111327 accepted/tizen/mobile/20170324.111051 accepted/tizen/tv/20170324.111157 accepted/tizen/unified/20170324.111410 accepted/tizen/wearable/20170324.111238 submit/tizen/20170324.043751 submit/tizen/20170324.072948
taesub kim [Fri, 24 Mar 2017 02:15:50 +0000 (19:15 -0700)]
Merge "Add new APIs for ethernet cable and deprecate wrong APIs" into tizen

7 years agoChanged the path of license by using '%license' macro 17/120217/1
Seonah Moon [Wed, 22 Mar 2017 06:32:29 +0000 (15:32 +0900)]
Changed the path of license by using '%license' macro

Change-Id: I70b27c5fc692ee55c73282b722c3a804662d0f37
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd new APIs for ethernet cable and deprecate wrong APIs 14/119214/4
Seonah Moon [Thu, 16 Mar 2017 04:32:38 +0000 (13:32 +0900)]
Add new APIs for ethernet cable and deprecate wrong APIs

Some APIs have typo in name. It should be modified.
Therefore, new APIs are added and old API is deprecated.
Old APIs will be removed from next release.

Change-Id: I38e41fee9b9eef27ea52cd10ca58991b6245d67d
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd converting function for netmask 89/119989/1 accepted/tizen/common/20170322.153719 accepted/tizen/ivi/20170322.235805 accepted/tizen/mobile/20170322.235640 accepted/tizen/tv/20170322.235712 accepted/tizen/unified/20170322.235834 accepted/tizen/wearable/20170322.235739 submit/tizen/20170322.011410
Seonah Moon [Tue, 21 Mar 2017 05:01:34 +0000 (14:01 +0900)]
Add converting function for netmask

Change-Id: I4e04daa8e5b2efce8c1fdde40d35857cecabe3e1
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoImplement API to get IPv6 addresses 69/119769/2
Seonah Moon [Mon, 20 Mar 2017 05:30:03 +0000 (14:30 +0900)]
Implement API to get IPv6 addresses

Change-Id: I87838ac2ad0a8672f462122bb0c2f89f7175d57f
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoImplement APIs for IPv6 and DNS configuration 36/118836/3
Seonah Moon [Tue, 14 Mar 2017 07:49:21 +0000 (16:49 +0900)]
Implement APIs for IPv6 and DNS configuration

Change-Id: If049a154b9cdbbdaf03173f441cb3602b13fc72c
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd new APIs for IPv6 and DNS configuration 52/114652/20
Seonah Moon [Tue, 14 Feb 2017 09:54:35 +0000 (18:54 +0900)]
Add new APIs for IPv6 and DNS configuration

Change-Id: Ie41e572f780c12c837edf78cca84e3a8fdeaf111
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoChanged vconf key for IPv6 address 67/118167/1 accepted/tizen/common/20170313.162355 accepted/tizen/ivi/20170313.042634 accepted/tizen/mobile/20170313.042540 accepted/tizen/tv/20170313.042602 accepted/tizen/unified/20170313.042657 accepted/tizen/wearable/20170313.042619 submit/tizen/20170313.001510
Seonah Moon [Thu, 9 Mar 2017 05:23:25 +0000 (14:23 +0900)]
Changed vconf key for IPv6 address

Change-Id: I77a91ce95646367743b3fad2ef96e3cbea376216
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoMerge "Fixed to check whether Ethernet cable state changed callback exists when it... accepted/tizen/common/20170201.171547 accepted/tizen/ivi/20170201.090024 accepted/tizen/mobile/20170201.085930 accepted/tizen/tv/20170201.085949 accepted/tizen/unified/20170309.031456 accepted/tizen/wearable/20170201.090008 submit/tizen/20170201.015422 submit/tizen_unified/20170308.100404
cheoleun moon [Wed, 1 Feb 2017 02:16:05 +0000 (18:16 -0800)]
Merge "Fixed to check whether Ethernet cable state changed callback exists when it is released" into tizen

7 years agoMerge "Use free instead of g_free if it's given by vconf_get_str" into tizen
cheoleun moon [Mon, 23 Jan 2017 05:33:37 +0000 (21:33 -0800)]
Merge "Use free instead of g_free if it's given by vconf_get_str" into tizen

7 years agoMerge "Remove Profile Build Dependency (TV)" into tizen
cheoleun moon [Mon, 23 Jan 2017 05:33:19 +0000 (21:33 -0800)]
Merge "Remove Profile Build Dependency (TV)" into tizen