platform/core/api/connection.git
14 months agoMerge "Add LCOV macro for coverage" into tizen accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.092640 accepted/tizen/unified/20230912.013616 tizen_8.0_m2_release
Jaehyun Kim [Mon, 11 Sep 2023 08:50:13 +0000 (08:50 +0000)]
Merge "Add LCOV macro for coverage" into tizen

14 months agoAdd LCOV macro for coverage 83/298583/2
Anjali Nijhara [Mon, 11 Sep 2023 05:32:34 +0000 (11:02 +0530)]
Add LCOV macro for coverage

Change-Id: I7f56c9a23363ee05c7c4640666becf16213e09f7

14 months agoRemove unittest related gcno files 87/298487/1
Anjali Nijhara [Thu, 7 Sep 2023 13:09:13 +0000 (18:39 +0530)]
Remove unittest related gcno files

Change-Id: I1e425ef2dd420a565d6cadf217f813322884bac4

16 months agoMerge "Add APIs to support DHCP state changes" into tizen accepted/tizen/unified/20230706.152214
Jaehyun Kim [Thu, 6 Jul 2023 03:15:06 +0000 (03:15 +0000)]
Merge "Add APIs to support DHCP state changes" into tizen

16 months agoFixed the build error using gcc 13 22/295022/2 accepted/tizen/unified/20230705.063701 accepted/tizen/unified/dev/20230726.115542
wchang kim [Fri, 30 Jun 2023 01:43:06 +0000 (10:43 +0900)]
Fixed the build error using gcc 13

Change-Id: I2f2fdb223eafd5ebf0ebabd3654a0801efb26000

16 months agoModify Test Code for NTP Server APIs 16/294216/4 accepted/tizen/unified/20230628.023641
Anjali Nijhara [Wed, 14 Jun 2023 09:42:10 +0000 (15:12 +0530)]
Modify Test Code for NTP Server APIs

Change-Id: I55ff3bd145a12349d3c448d9ec933bedf54a52dc

16 months agoAdd an API for getting NTP Server URL 11/294211/5
Anjali Nijhara [Wed, 14 Jun 2023 08:49:38 +0000 (14:19 +0530)]
Add an API for getting NTP Server URL

Change-Id: I834cb189423601a299e84321c5347dac9f236a1e

16 months agoAdd APIs for setting and clearing NTP server. 22/294222/5
Manika Shrivastava [Wed, 14 Jun 2023 10:58:39 +0000 (16:28 +0530)]
Add APIs for setting and clearing NTP server.

Change-Id: Iac057baa88d19cde7c473f3d525d188009934dbc
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
16 months agoAdd APIs to support DHCP state changes 14/293814/4
Jaehyun Kim [Mon, 5 Jun 2023 11:39:16 +0000 (20:39 +0900)]
Add APIs to support DHCP state changes

Change-Id: I8ee7c017cb8e54ebf9b686f1af4be4d4726d8bf0
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
16 months agoNTP server APIs prototype 01/294101/2
Manika Shrivastava [Tue, 13 Jun 2023 06:41:25 +0000 (12:11 +0530)]
NTP server APIs prototype

Change-Id: I6c5f63cda7f1c182acfe4935f4931d79b3ce6f10
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
2 years agoFix incorrect dereference code 01/282601/1
Jaehyun Kim [Thu, 6 Oct 2022 09:42:48 +0000 (18:42 +0900)]
Fix incorrect dereference code

Change-Id: I10ded479544a83f1a21d406c7ca74630d98612c2
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoFix memory issues in unittest code 59/277759/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062008 accepted/tizen/7.0/unified/hotfix/20221116.104626 accepted/tizen/unified/20220714.135350 submit/tizen/20220713.054123 tizen_7.0_m2_release
Jaehyun Kim [Wed, 13 Jul 2022 02:51:16 +0000 (11:51 +0900)]
Fix memory issues in unittest code

Change-Id: Ifbac73ef284ce1fd96c7097356b5aa52c57fd2ba
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoUpdate net_connection_doc.h for network.route feature 13/277613/1 accepted/tizen/unified/20220712.010813 submit/tizen/20220711.073934
cheoleun moon [Mon, 11 Jul 2022 05:30:50 +0000 (14:30 +0900)]
Update net_connection_doc.h for network.route feature

Change-Id: Idac5c31e3f34145a96e344d11fe92c8e5c8891cd

2 years agoAdd feature check for route 72/277572/2
chaehee-hong [Fri, 8 Jul 2022 08:55:26 +0000 (17:55 +0900)]
Add feature check for route

- tizen.org/feature/network.route

Change-Id: I0bcc4cd0db945b631b8d815114ca35a75b1b01e2

2 years agoDo not build unittest when ASAN is enabled 90/276690/1 accepted/tizen/unified/20220627.133847 submit/tizen/20220623.044549
Seonah Moon [Thu, 23 Jun 2022 02:28:09 +0000 (11:28 +0900)]
Do not build unittest when ASAN is enabled

Change-Id: I80060b2dc8919659a86898489f8bae3c735fc1cc

2 years agoApply gcov automation 61/276061/2 accepted/tizen/unified/20220614.134810 submit/tizen/20220610.003743
Seonah Moon [Thu, 9 Jun 2022 05:39:26 +0000 (14:39 +0900)]
Apply gcov automation

Change-Id: I956470ed08a0c4283e0983d8c8b7860f6f490601

2 years agoAdd support for empty IPv6 gateway address test 94/275094/1 accepted/tizen/unified/20220524.050436 submit/tizen/20220517.032025 submit/tizen/20220518.041030
Jaehyun Kim [Mon, 16 May 2022 12:35:41 +0000 (21:35 +0900)]
Add support for empty IPv6 gateway address test

An empty IPv6 gateway address is allowed
to represent an unspecified IP when setting routing table.
So, if this value is passed, it must be handled appropriately.

Change-Id: Iacdfb1efecad269c3052fec305e3004db8597fe0
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoChange a gcov path 83/270183/1 accepted/tizen/unified/20220208.112050 submit/tizen/20220126.091456 submit/tizen/20220203.092210
Jaehyun Kim [Wed, 26 Jan 2022 08:32:29 +0000 (17:32 +0900)]
Change a gcov path

Change-Id: Ibaba5edbf9ce7b899933fda0e50e4153e1fbdf05
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoFix coding guidelines issues 09/265409/6 accepted/tizen/unified/20220114.130155 submit/tizen/20220111.042706 submit/tizen/20220111.044041
Anjali Nijhara [Thu, 14 Oct 2021 07:39:10 +0000 (13:09 +0530)]
Fix coding guidelines issues

Change-Id: Ic890ef2bdaf5801f15ece6c88916756fa83aeacf
Signed-off-by: Anjali Nijhara <a.nijhara@samsung.com>
2 years agoFix logical deadlock issue 12/265512/10 accepted/tizen/unified/20211216.155827 submit/tizen/20211215.063645
Nishant Chaprana [Thu, 21 Oct 2021 06:45:10 +0000 (12:15 +0530)]
Fix logical deadlock issue

Change-Id: I711ffa1aab15b0e1301c81217236b080b24bba6e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 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>