platform/core/api/connection.git
2 years agoGet vconf value via DBus in container environment 99/266299/2 accepted/tizen/unified/20211129.120848 submit/tizen/20211117.050637 submit/tizen/20211125.124313 submit/tizen/20211126.045758
Jaehyun Kim [Wed, 10 Nov 2021 09:47:37 +0000 (18:47 +0900)]
Get vconf value via DBus in container environment

Change-Id: Ie9f082cb8285f5a62ed15f56f98e4dae0582f798
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agotest: update DNS configuration correctly 91/263291/1 accepted/tizen/6.5/unified/20211028.094338 accepted/tizen/unified/20210906.123717 submit/tizen/20210901.031812 submit/tizen_6.5/20211028.161701 tizen_6.5.m2_release
Seonah Moon [Tue, 31 Aug 2021 02:14:52 +0000 (11:14 +0900)]
test: update DNS configuration correctly

DNS was dynamic although IP configuration was static.

Change-Id: I6a26cf070f4072fbce178d9a13d1a3fa1230c27c

3 years agoAdd API headers for TV rootstrap 27/263227/1 accepted/tizen/unified/20210831.143852 submit/tizen/20210830.034303
Seonah Moon [Mon, 30 Aug 2021 01:54:44 +0000 (10:54 +0900)]
Add API headers for TV rootstrap

Change-Id: I93c2abe2be1935ae04a81846f5ccac648246025c

3 years agoAdd an API for getting time update state. 19/261519/3 accepted/tizen/unified/20210726.135514 submit/tizen/20210723.060030
Jaehyun Kim [Tue, 20 Jul 2021 10:32:40 +0000 (19:32 +0900)]
Add an API for getting time update state.

Change-Id: I11afee8a385517bac70599ec0268d65f421b3277
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoFix build issue 35/254735/1 accepted/tizen/unified/20210316.151303 submit/tizen/20210315.105624
Nishant Chaprana [Tue, 9 Mar 2021 05:21:24 +0000 (10:51 +0530)]
Fix build issue

Change-Id: Ib17150040bfc9f6acc96c2f2b503a5720e7f207a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFixed Ethernet over EAP enabled status on device reboot. 87/249787/1 accepted/tizen/unified/20210129.002155 submit/tizen/20210125.084818 submit/tizen/20210126.062930 submit/tizen/20210127.105449
Niraj Kumar Goit [Wed, 16 Dec 2020 15:41:40 +0000 (21:11 +0530)]
Fixed Ethernet over EAP enabled status on device reboot.

Change-Id: Ia60491d9e2187ad1f5138a0e3477e0634bcb0b82
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoUse mutex instead of copying of network_info inside event handler 29/244729/2 accepted/tizen/unified/20201029.124903 submit/tizen/20201008.114009 submit/tizen/20201028.023046
Nishant Chaprana [Wed, 23 Sep 2020 15:15:54 +0000 (20:45 +0530)]
Use mutex instead of copying of network_info inside event handler

Change-Id: Ia8f8b86ed6ea293c3ed6703109dce020d276871f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "Use proper array size as required by scanf string specifier" into tizen accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121303 accepted/tizen/6.0/unified/hotfix/20201103.003440 accepted/tizen/6.0/unified/hotfix/20201103.050209 accepted/tizen/unified/20201006.044349 submit/tizen/20200925.132900 submit/tizen/20201005.112026 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
Jaehyun Kim [Tue, 22 Sep 2020 07:05:07 +0000 (07:05 +0000)]
Merge "Use proper array size as required by scanf string specifier" into tizen

4 years agoMerge "Donot assign NULL after g_free to local pointer" into tizen
Jaehyun Kim [Tue, 22 Sep 2020 07:04:44 +0000 (07:04 +0000)]
Merge "Donot assign NULL after g_free to local pointer" into tizen

4 years agoFixed the NULL pointer dereferencing 61/244561/1
Prasadam Prashath Kumar [Mon, 21 Sep 2020 18:43:34 +0000 (00:13 +0530)]
Fixed the NULL pointer dereferencing

segmentatin fault while gtest build
qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Change-Id: Iee747c7ed11fa8474e155187314070391e30b077
Signed-off-by: Prasadam Prashath Kumar <prasadam.p@samsung.com>
4 years agoUse proper array size as required by scanf string specifier 92/244492/1
Nishant Chaprana [Sun, 20 Sep 2020 10:45:49 +0000 (16:15 +0530)]
Use proper array size as required by scanf string specifier

Change-Id: Iad3f69c691ee4b910aea2998746ffdf9a44ecb21
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoDonot assign NULL after g_free to local pointer 91/244491/1
Nishant Chaprana [Sun, 20 Sep 2020 10:42:08 +0000 (16:12 +0530)]
Donot assign NULL after g_free to local pointer

Change-Id: I761cb09fd23530e7a3a28d8c9049018cad1a79af
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "Fix resource leak" into tizen accepted/tizen/unified/20200921.095109 submit/tizen/20200917.115639 submit/tizen/20200918.062939
Jaehyun Kim [Thu, 17 Sep 2020 12:01:15 +0000 (12:01 +0000)]
Merge "Fix resource leak" into tizen

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 agoFix resource leak 92/244292/1
hyunuk.tak [Thu, 17 Sep 2020 03:50:48 +0000 (12:50 +0900)]
Fix resource leak

Change-Id: I3c31a4cb77b7cbe7b1a8ab5a19471e029b715a82
Signed-off-by: hyunuk.tak <hyunuk.tak@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>