platform/core/connectivity/libnet-client.git
9 months agoMerge "Add APIs to support DHCP state changes" into tizen accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.093215 accepted/tizen/unified/20230706.152211 tizen_8.0_m2_release
Jaehyun Kim [Thu, 6 Jul 2023 03:10:39 +0000 (03:10 +0000)]
Merge "Add APIs to support DHCP state changes" into tizen

10 months agoAdd APIs for setting and clearing NTP server 21/294221/6 accepted/tizen_unified_dev accepted/tizen/unified/20230628.023639 accepted/tizen/unified/dev/20230726.115545
Manika Shrivastava [Wed, 14 Jun 2023 11:00:47 +0000 (16:30 +0530)]
Add APIs for setting and clearing NTP server

Change-Id: I9d7ff1c2de9e51e82ad275e009e1f6a4abcd3a5d
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
10 months agoAdd APIs to support DHCP state changes 13/293813/3
Jaehyun Kim [Mon, 5 Jun 2023 11:38:55 +0000 (20:38 +0900)]
Add APIs to support DHCP state changes

Change-Id: I50133484c3c86f53702a44ff533a2ab2e14c036a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
10 months agoAdd an API for getting NTP Server URL 12/294212/2
Anjali Nijhara [Wed, 14 Jun 2023 08:45:28 +0000 (14:15 +0530)]
Add an API for getting NTP Server URL

Change-Id: I533729b5f283d444c2fc12f3c19722ea7c26d5ad

19 months agoFix dbus build error for adding cellular profile 86/280986/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.055935 accepted/tizen/7.0/unified/hotfix/20221116.105155 accepted/tizen/unified/20220908.124850 tizen_7.0_m2_release
Jaehyun Kim [Wed, 7 Sep 2022 09:19:44 +0000 (18:19 +0900)]
Fix dbus build error for adding cellular profile

Change-Id: I5c20134f5d0314c6da503e512d6cd92efcaf7105
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
19 months agoFix error return omission 71/280671/1 submit/tizen/20220902.085939
Jaehyun Kim [Fri, 2 Sep 2022 04:50:20 +0000 (13:50 +0900)]
Fix error return omission

Change-Id: I66eb0b58512d9d6d7fe291c68b5a626cfeeb33cf
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
19 months agoRefactor duplicate codes 39/280539/1
Jaehyun Kim [Wed, 31 Aug 2022 09:12:56 +0000 (18:12 +0900)]
Refactor duplicate codes

Change-Id: Iea3b84ff127c4b4f3725a168a8a837481267565f
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
23 months agoHandle empty IPv6 gateway address 93/275093/1 accepted/tizen/unified/20220524.050430 submit/tizen/20220517.032025 submit/tizen/20220518.041030
Jaehyun Kim [Mon, 16 May 2022 12:24:58 +0000 (21:24 +0900)]
Handle empty IPv6 gateway address

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: I570331a98f274f5966abdba6ab07353cd83e0d7e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoSupport association failed error 78/269378/1 accepted/tizen/unified/20220119.121810 submit/tizen/20220118.052414
Jaehyun Kim [Thu, 13 Jan 2022 08:42:03 +0000 (17:42 +0900)]
Support association failed error

Change-Id: Ia6fd97aa243c925d0b5e30be179ccc17e867ba3f
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd an API to access vconf via DBus 81/266281/2 accepted/tizen/unified/20211129.120842 submit/tizen/20211117.050637 submit/tizen/20211125.124313 submit/tizen/20211126.045758
Jaehyun Kim [Wed, 10 Nov 2021 07:50:09 +0000 (16:50 +0900)]
Add an API to access vconf via DBus

Change-Id: I60683458cb7514d76b79d949be22d171409bf51e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd support for container environment 40/265840/1
Jaehyun Kim [Fri, 29 Oct 2021 10:06:46 +0000 (19:06 +0900)]
Add support for container environment

Modified the container's libnet-client to use the host's network daemons
to allow the container and host to control the same network interfaces.

Change-Id: I7900e752dd62774b0e9349ed3006b5a7f2a46ae8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoAdd an API for getting time update state. 20/261520/2 accepted/tizen/6.5/unified/20211028.100241 accepted/tizen/unified/20210726.135521 submit/tizen/20210723.060030 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release
Jaehyun Kim [Tue, 20 Jul 2021 10:33:45 +0000 (19:33 +0900)]
Add an API for getting time update state.

Change-Id: I92ffec2e74921d2e25d1dc09aa112a3f764bd55a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2 years agoModified to provide ip type information properly. 43/261343/1 accepted/tizen/unified/20210720.123512 submit/tizen/20210719.021504
Jaehyun Kim [Thu, 15 Jul 2021 12:10:12 +0000 (21:10 +0900)]
Modified to provide ip type information properly.

Change-Id: I91486790696939be467790f8e8dde05773aec672
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
3 years agoMerge "Changes to follow Coding Convention." into tizen accepted/tizen/unified/20210316.151310 submit/tizen/20210225.100540 submit/tizen/20210315.105624
Jaehyun Kim [Thu, 25 Feb 2021 10:03:07 +0000 (10:03 +0000)]
Merge "Changes to follow Coding Convention." into tizen

3 years agoFixed IsEapolEnabled status check on device reboot. 86/249786/1 accepted/tizen/unified/20210129.002200 submit/tizen/20210125.084818 submit/tizen/20210126.062930 submit/tizen/20210127.105449
Niraj Kumar Goit [Wed, 16 Dec 2020 15:28:38 +0000 (20:58 +0530)]
Fixed IsEapolEnabled status check on device reboot.

Dbus method 'IsEapolEnabled' call moved to connman to fix
EAPoL enabled status check in case of device reboot.

Change-Id: If4f2b26c93f0dc2da731cde4539fece54c97cca5
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoChanges to follow Coding Convention. 89/245989/5
Tarun Pratap Singh Bhadouria [Wed, 21 Oct 2020 06:10:56 +0000 (11:40 +0530)]
Changes to follow Coding Convention.

Change-Id: I278b49fdbb49573a1139f008eeb22158f9ca1063
Signed-off-by: Tarun Pratap Singh Bhadouria <tp.bhadouria@samsung.com>
3 years agoUse connman's StateChangedProperties to process service state 31/245031/5 accepted/tizen/unified/20210122.123010 submit/tizen/20201106.060323 submit/tizen/20201116.030352 submit/tizen/20201127.052752 submit/tizen/20201217.131910 submit/tizen/20201229.102954 submit/tizen/20210119.130611
Nishant Chaprana [Mon, 2 Nov 2020 11:15:20 +0000 (16:45 +0530)]
Use connman's StateChangedProperties to process service state

Change-Id: I7ba0a129bc7da44f75bdafc5d4c6e8f3e95723e1
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years ago[TDLS] Remove unused MACROS and enumerations 82/245482/1 accepted/tizen/unified/20201029.124909 submit/tizen/20201028.023046
Nishant Chaprana [Fri, 9 Oct 2020 13:58:27 +0000 (19:28 +0530)]
[TDLS] Remove unused MACROS and enumerations

Change-Id: I059f2cc32c36c9995355431f80ed40042df6b567
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoMerge "Fix build issue when building with gcov and gtests flags" into tizen submit/tizen/20201008.114009
Jaehyun Kim [Thu, 8 Oct 2020 09:43:49 +0000 (09:43 +0000)]
Merge "Fix build issue when building with gcov and gtests flags" into tizen

3 years agoFix build issue when building with gcov and gtests flags 63/245263/1
Tarun Pratap Singh Bhadouria [Mon, 5 Oct 2020 08:15:46 +0000 (13:45 +0530)]
Fix build issue when building with gcov and gtests flags

Change-Id: Id0d438179847c67cce5f00c83ae3c860744ed305

3 years agoAdd wrapper to send event callback 30/244730/3
Nishant Chaprana [Wed, 23 Sep 2020 14:26:10 +0000 (19:56 +0530)]
Add wrapper to send event callback

Sends event only when network_info referenced by net_register_client()
If net_deregister_client() is called by App, then events are not sent.

Change-Id: I006b6ded8e3444a739e5be2a655bca692619d6c3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFetch profile info by GetProperties instead of GetServices 88/244488/4 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120406 accepted/tizen/6.0/unified/hotfix/20201103.050319 accepted/tizen/unified/20201006.044356 submit/tizen/20200925.132900 submit/tizen/20201005.112026 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Nishant Chaprana [Sun, 20 Sep 2020 09:31:35 +0000 (15:01 +0530)]
Fetch profile info by GetProperties instead of GetServices

Change-Id: I56da5bfafdacd234a3899a765cc4c273bcb46aa6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix memory leak and null checking 95/244295/2 accepted/tizen/unified/20200921.095119 submit/tizen/20200918.062939
hyunuk.tak [Thu, 17 Sep 2020 04:30:06 +0000 (13:30 +0900)]
Fix memory leak and null checking

Change-Id: Ica660f8a80087c0035687647b8af7fdf3d060831
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoEnsure network_info validity by g_timeout_add callback instead of destroy notification 32/243332/14 accepted/tizen/unified/20200915.014622 submit/tizen/20200914.170015
Nishant Chaprana [Fri, 11 Sep 2020 08:32:44 +0000 (14:02 +0530)]
Ensure network_info validity by g_timeout_add callback instead of destroy notification

Change-Id: Ibbde16fb20ca0a095768a27f7c073a714e2109fe
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoAdd multi interfaces function 08/242508/8 accepted/tizen/unified/20200903.151725 submit/tizen/20200901.053326 submit/tizen/20200902.111409 submit/tizen/20200903.044940
hyunuk.tak [Thu, 27 Aug 2020 08:31:46 +0000 (17:31 +0900)]
Add multi interfaces function

Change-Id: I5ae1059626ba6cde1c58eee1564904eaa7542af0
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoManage network_info by reference counting 08/240308/4 accepted/tizen/unified/20200812.144020 submit/tizen/20200811.004738
Nishant Chaprana [Wed, 5 Aug 2020 07:09:53 +0000 (12:39 +0530)]
Manage network_info by reference counting

Change-Id: I73d43ea9edc53c57cd7b2a1b645ab40f2d217de5
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoMerge "Implement net_get_wifi_state using connman dbus method instead of net-config... submit/tizen/20200706.030139
cheoleun moon [Mon, 6 Jul 2020 03:01:15 +0000 (03:01 +0000)]
Merge "Implement net_get_wifi_state using connman dbus method instead of net-config" into tizen

3 years agoImplement net_get_wifi_state using connman dbus method instead of net-config 51/193151/2
Niraj Kumar Goit [Tue, 30 Jun 2020 11:16:37 +0000 (16:46 +0530)]
Implement net_get_wifi_state using connman dbus method instead of net-config

Change-Id: I54348f14c6613a5590ae972a7a776d44d001df69
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
3 years agoRemove logically dead code when registering D-Bus signals 64/237064/1 accepted/tizen/unified/20200701.123300 submit/tizen/20200630.070855
Nishant Chaprana [Wed, 24 Jun 2020 19:54:34 +0000 (01:24 +0530)]
Remove logically dead code when registering D-Bus signals

As per Gdbus documentation for g_dbus_connection_signal_subscribe() API.
The returned subscription identifier is an opaque value which is guaranteed to never be zero.
This function can never fail.

Reference: https://developer.gnome.org/gio/stable/GDBusConnection.html#g-dbus-connection-signal-subscribe

Change-Id: I9bde71b3e5894e1409d7b0b8c0856cb2085bd000
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoFix stringop-truncation 60/235060/3 accepted/tizen/unified/20200603.150201 submit/tizen/20200602.064233
Cheoleun Moon [Tue, 2 Jun 2020 03:45:23 +0000 (12:45 +0900)]
Fix stringop-truncation

Change-Id: Idaa330703734f280c7b1ebbf52d5bfc6226437fc
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoMerge "Move state and request table to local handle" into tizen accepted/tizen/unified/20200512.040513 submit/tizen/20200511.004906
hyunuk tak [Mon, 11 May 2020 00:48:30 +0000 (00:48 +0000)]
Merge "Move state and request table to local handle" into tizen

3 years agoMove state and request table to local handle 50/223950/4
hyunuk.tak [Wed, 5 Feb 2020 07:17:32 +0000 (16:17 +0900)]
Move state and request table to local handle

Change-Id: I73bee6d24832ae4beb77473df5ee45df5cac1c4a
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoAdded support for EAPoL connection. 70/230970/9 accepted/tizen/unified/20200507.052338 submit/tizen/20200504.135236 submit/tizen/20200504.152605 submit/tizen/20200506.120225
Niraj Kumar Goit [Thu, 16 Apr 2020 08:26:06 +0000 (13:56 +0530)]
Added support for EAPoL connection.

Change-Id: I2f864bae88c0c6f95c0128d5c4c285dfc62f2541
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoFix Out-of-bounds access issue 22/225122/2 accepted/tizen/unified/20200227.121042 submit/tizen/20200227.012332
Jaehyun Kim [Mon, 17 Feb 2020 11:52:22 +0000 (20:52 +0900)]
Fix Out-of-bounds access issue

Change-Id: I7f69a5c327226336c63f831c32d6d897ee690b05
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoAdd null character 56/223256/1 accepted/tizen/unified/20200129.022720 submit/tizen/20200128.144633
Cheoleun Moon [Tue, 28 Jan 2020 13:48:26 +0000 (22:48 +0900)]
Add null character

IPv6 address in /proc/net/if_inet6 is converted by inet_pton and
inet_ntop. inet_pton() internally uses strlen(src), so its parameter
should be null-terminated.

Change-Id: I8c86b5e924327f0c3531301ed3082c048f776979
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
4 years agoFix format-truncation warning for gcc 9 20/220920/1 accepted/tizen/unified/20191227.142737 submit/tizen/20191226.234511
Semun Lee [Thu, 26 Dec 2019 02:25:00 +0000 (11:25 +0900)]
Fix format-truncation warning for gcc 9

Change-Id: If4d25275add786582b9842d2c4b993a3b32fa7d6
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoChange wrong license preamble 13/217713/1
Seonah Moon [Wed, 13 Nov 2019 12:18:49 +0000 (21:18 +0900)]
Change wrong license preamble

Change-Id: I8fc155fc1871451ccea62887bd278c165ff98c68

4 years agoFix resource leak issues 59/215759/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.024032 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083950 accepted/tizen/5.5/unified/wearable/hotfix/20201027.114907 accepted/tizen/unified/20191016.000403 submit/tizen/20191015.105509 submit/tizen/20191015.120011 submit/tizen/20191015.233846 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
Jaehyun Kim [Tue, 15 Oct 2019 10:42:17 +0000 (19:42 +0900)]
Fix resource leak issues

Change-Id: I081edd102ba613815c9abdfa5905ead17a120377
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoCheck null handle for network info 60/215660/2 submit/tizen/20191014.135954
hyunuk.tak [Mon, 14 Oct 2019 05:07:16 +0000 (14:07 +0900)]
Check null handle for network info

Change-Id: I4f593a168b8f948cafe86fa1fbe8f3ac5df9b9ac
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoAdd support of Internet connection state 23/215523/1 accepted/tizen/unified/20191011.015507 submit/tizen/20191010.060003
Jaehyun Kim [Thu, 10 Oct 2019 05:26:20 +0000 (14:26 +0900)]
Add support of Internet connection state

Change-Id: I2f7cd6e1b13b7b2c0fa8954b612270338ab5f71a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoAdded support of WPA3-SAE security mode. 86/207986/2 submit/tizen/20190708.075804 submit/tizen/20191008.125704 submit/tizen/20191010.004456
Niraj Kumar Goit [Fri, 14 Jun 2019 11:52:12 +0000 (17:22 +0530)]
Added support of WPA3-SAE security mode.

Change-Id: I29ab3c66fec3df9c5717a01d03c39e8b28a53337
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoRefactoring how to get profile list 41/203841/3 submit/tizen/20190509.021344
hyunuktak [Thu, 18 Apr 2019 05:48:41 +0000 (14:48 +0900)]
Refactoring how to get profile list

Change-Id: I3dfd4242bd0fa3d0a52a4724e30a07144be393ff
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
4 years agoMake local handle for event loop 43/203343/5
hyunuktak [Fri, 12 Apr 2019 02:15:38 +0000 (11:15 +0900)]
Make local handle for event loop

Remove unused some functions
It's one of the processess for multi-thread safety.

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

Change-Id: I5cdc1e30cfb821130c91533328cf706ca62ffabe
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoAdded Gcov coverage for libnet-client package 95/190795/2 accepted/tizen/unified/20181107.082018 submit/tizen/20181106.045243
Abhishek Sansanwal [Thu, 4 Oct 2018 10:11:32 +0000 (15:41 +0530)]
Added Gcov coverage for libnet-client package

Description:
Overall coverage rate:
  lines......: 97.4% (952 of 977 lines)
  functions..: 99.1% (105 of 106 functions)

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

5 years agoMerge "Check parameter for NULL before dereference." into tizen
cheoleun moon [Tue, 6 Nov 2018 00:52:36 +0000 (00:52 +0000)]
Merge "Check parameter for NULL before dereference." into tizen

5 years agoMerge "Check "enabled" parameter for NULL before derefering" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:52:19 +0000 (00:52 +0000)]
Merge "Check "enabled" parameter for NULL before derefering" into tizen

5 years agoMerge "Check parameter for NULL before derefering" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:52:09 +0000 (00:52 +0000)]
Merge "Check parameter for NULL before derefering" into tizen

5 years agoMerge "Check "current_state" parameter for NULL before derefering" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:51:53 +0000 (00:51 +0000)]
Merge "Check "current_state" parameter for NULL before derefering" into tizen

5 years agoMerge "Check size variable for NULL before derefering" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:51:30 +0000 (00:51 +0000)]
Merge "Check size variable for NULL before derefering" into tizen

5 years agoMerge "Check parameter for NULL" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:51:08 +0000 (00:51 +0000)]
Merge "Check parameter for NULL" into tizen

5 years agoMerge "Check GSList parameter before dereferencing" into tizen
cheoleun moon [Tue, 6 Nov 2018 00:50:56 +0000 (00:50 +0000)]
Merge "Check GSList parameter before dereferencing" into tizen

5 years agoAdded Gtest cases for libnet-client 30/190230/5
Abhishek Sansanwal [Fri, 28 Sep 2018 09:55:39 +0000 (15:25 +0530)]
Added Gtest cases for libnet-client

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

5 years agoCheck parameter for NULL before dereference. 32/190532/1
Abhishek Sansanwal [Wed, 3 Oct 2018 10:30:53 +0000 (16:00 +0530)]
Check parameter for NULL before dereference.

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

5 years agoCheck parameter for NULL 34/190234/2
Abhishek Sansanwal [Fri, 28 Sep 2018 10:05:55 +0000 (15:35 +0530)]
Check parameter for NULL

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

5 years agoCheck "current_state" parameter for NULL before derefering 40/190240/1
Abhishek Sansanwal [Fri, 28 Sep 2018 10:13:29 +0000 (15:43 +0530)]
Check "current_state" parameter for NULL before derefering

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

5 years agoCheck "enabled" parameter for NULL before derefering 38/190238/1
Abhishek Sansanwal [Fri, 28 Sep 2018 10:11:40 +0000 (15:41 +0530)]
Check "enabled" parameter for NULL before derefering

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

5 years agoCheck parameter for NULL before derefering 37/190237/1
Abhishek Sansanwal [Fri, 28 Sep 2018 10:09:46 +0000 (15:39 +0530)]
Check parameter for NULL before derefering

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

5 years agoCheck size variable for NULL before derefering 35/190235/1
Abhishek Sansanwal [Fri, 28 Sep 2018 10:08:34 +0000 (15:38 +0530)]
Check size variable for NULL before derefering

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

5 years agoCheck GSList parameter before dereferencing 32/190232/1
Abhishek Sansanwal [Fri, 28 Sep 2018 09:58:28 +0000 (15:28 +0530)]
Check GSList parameter before dereferencing

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

5 years agoCheck parameter for NULL before dereferencing 22/190022/1
Abhishek Sansanwal [Wed, 26 Sep 2018 11:10:00 +0000 (16:40 +0530)]
Check parameter for NULL before dereferencing

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

5 years ago[Coverity CID: 1025913] Fixed resource leak issue. 63/188863/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015039 accepted/tizen/unified/20180912.061701 submit/tizen/20180911.120738 submit/tizen_5.0/20181101.000003
Nishant Chaprana [Tue, 11 Sep 2018 06:39:46 +0000 (12:09 +0530)]
[Coverity CID: 1025913] Fixed resource leak issue.

Change-Id: Ifc4e5c7982c110ee55ae3addffef09fb5824a938
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoMerge "Revert "[SVACE Fix][WGID: 34553] Use proper IPV6 address size"" into tizen submit/tizen/20180910.060213 submit/tizen/20180911.002950 submit/tizen/20180912.042809
cheoleun moon [Mon, 10 Sep 2018 06:01:03 +0000 (06:01 +0000)]
Merge "Revert "[SVACE Fix][WGID: 34553] Use proper IPV6 address size"" into tizen

5 years agoRevert "[SVACE Fix][WGID: 34553] Use proper IPV6 address size" 57/188757/2
cheoleun moon [Mon, 10 Sep 2018 05:54:46 +0000 (05:54 +0000)]
Revert "[SVACE Fix][WGID: 34553] Use proper IPV6 address size"

This reverts commit a9296842694e6a84173860bbd9cc40ff325e1b82.

str is a variable to store ipv6 address from /proc/net/if_inet6. The value doesn't include ':', so the length of ipv6 address in /proc/net/if_inet6 is 32.
e.g)
sh-3.2# cat if_inet6
00000000000000000000000000000001 01 80 10 80       lo
fe8000000000000034dc1afffe42080e 57 40 20 80    wlan0
fd000000000000006cab78fe232e6105 57 40 00 01    wlan0

Change-Id: I678c80822cff6c794a2ddce3f3b6395ecf1e278e

5 years agoRevert "Use loop of mapping table instead long if-else clauses" 26/188326/2 accepted/tizen/unified/20180907.043057 submit/tizen/20180904.110831 submit/tizen/20180906.090023
cheoleun moon [Tue, 4 Sep 2018 04:00:29 +0000 (04:00 +0000)]
Revert "Use loop of mapping table instead long if-else clauses"

This reverts commit 8d3662bb4092601dffcfcc2bc698b853181a03a4.

Change-Id: Iebddcbb167aa331be5666d152029a8d4f015058d

5 years agoMerge changes I08152159,Ib14f7b66,Iee54f4d8,Id97274e6,I8798b208 into tizen
chleun.moon [Tue, 4 Sep 2018 04:00:06 +0000 (04:00 +0000)]
Merge changes I08152159,Ib14f7b66,Iee54f4d8,Id97274e6,I8798b208 into tizen

* changes:
  Simplify __net_telephony_get_profile_info by using functions dedicated to each task
  Simplify __net_extract_wifi_info by using functions dedicated to each key
  Simplify __net_modify_wlan_profile_info by using functions dedicated to each task
  Separate the function that handle each event callback
  Use loop of mapping table instead long if-else clauses

5 years agoMerge "Use handler functions for each key" into tizen
chleun.moon [Tue, 4 Sep 2018 03:58:37 +0000 (03:58 +0000)]
Merge "Use handler functions for each key" into tizen

5 years agoSimplify __net_telephony_get_profile_info by using functions dedicated to each task 08/188308/1
chleun.moon [Tue, 4 Sep 2018 00:40:34 +0000 (09:40 +0900)]
Simplify __net_telephony_get_profile_info by using functions dedicated to each task

Change-Id: I081521597d11337397c096fbb6b8dd487e3413fe
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoSimplify __net_extract_wifi_info by using functions dedicated to each key 62/188262/1
chleun.moon [Mon, 3 Sep 2018 10:35:30 +0000 (19:35 +0900)]
Simplify __net_extract_wifi_info by using functions dedicated to each key

Change-Id: Ib14f7b6638c0f52b3d849613645ca9adb7b5befd
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoMerge "Refactor functions for mptcp" into tizen submit/tizen/20180903.045143
Jaehyun Kim [Mon, 3 Sep 2018 04:12:11 +0000 (04:12 +0000)]
Merge "Refactor functions for mptcp" into tizen

5 years ago[Wi-Fi Mesh] Check whether technology is available before calling GetMeshPeers method 30/188130/1
Nishant Chaprana [Fri, 31 Aug 2018 12:45:46 +0000 (18:15 +0530)]
[Wi-Fi Mesh] Check whether technology is available before calling GetMeshPeers method

Change-Id: I1dbcd6e7809cf7c2077074018ee95db9a6bfbe4f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoSimplify __net_modify_wlan_profile_info by using functions dedicated to each task 65/187965/1
chleun.moon [Thu, 30 Aug 2018 05:00:05 +0000 (14:00 +0900)]
Simplify __net_modify_wlan_profile_info by using functions dedicated to each task

Change-Id: Iee54f4d8a7211cd26121289e549074d2a906bfab
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoSeparate the function that handle each event callback 64/187964/1
chleun.moon [Thu, 30 Aug 2018 04:34:56 +0000 (13:34 +0900)]
Separate the function that handle each event callback

Change-Id: Id97274e60e512a6cbbe7ef18809d0655d51a8200
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoUse loop of mapping table instead long if-else clauses 61/187961/1
chleun.moon [Thu, 30 Aug 2018 04:14:11 +0000 (13:14 +0900)]
Use loop of mapping table instead long if-else clauses

Change-Id: I8798b20893647bb52ed05c70c589badb92d22607
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoUse handler functions for each key 59/187959/1
chleun.moon [Thu, 30 Aug 2018 04:06:19 +0000 (13:06 +0900)]
Use handler functions for each key

Change-Id: I13e111c8262ca14f03de0d9a7bcd53cd356b1439
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoRefactor functions for mptcp 36/187836/2
Seonah Moon [Wed, 29 Aug 2018 01:33:49 +0000 (10:33 +0900)]
Refactor functions for mptcp

Change-Id: Ie4e4bc11d886d767d5becf4504f29de31292e335

5 years ago[libnet-client] Added Tizen Wi-Fi Mesh 76/186776/2 submit/tizen/20180824.072908
Nishant Chaprana [Tue, 14 Aug 2018 07:34:28 +0000 (13:04 +0530)]
[libnet-client] Added Tizen Wi-Fi Mesh

Change-Id: I1364bb27fac00af51350293756c67be3608fca6f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years ago[SVACE Fix][WGID: 34553] Use proper IPV6 address size 83/186783/1
Nishant Chaprana [Tue, 14 Aug 2018 09:11:28 +0000 (14:41 +0530)]
[SVACE Fix][WGID: 34553] Use proper IPV6 address size

Change-Id: I8b20f859f64397ece24062a8ca6c54c805c97e99
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoUse netconfig wifi interface instead of tv_profile. 61/179161/1 accepted/tizen/unified/20180518.060607 submit/tizen/20180516.084045 submit/tizen/20180517.074625
Niraj Kumar Goit [Wed, 16 May 2018 06:26:35 +0000 (11:56 +0530)]
Use netconfig wifi interface instead of tv_profile.

As tv_profile interface is removed from net-config use wifi
interface to call DBus method instead of tv_profile.

Change-Id: Icaa9a1b5175c288a15619b25359be297489ddd4f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
6 years agoAdded APIs for C# thread handling 14/170914/2 accepted/tizen/unified/20180227.062956 submit/tizen/20180226.110934
Jaehyun Kim [Fri, 23 Feb 2018 07:18:22 +0000 (16:18 +0900)]
Added APIs 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 APIs for init/deinit.

Change-Id: I7eafd18b24b5ef51a1f69e8ebb53d40b09b181e1
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
6 years agoAdd Multipath TCP 79/169179/1
chleun.moon [Mon, 5 Feb 2018 02:08:50 +0000 (11:08 +0900)]
Add Multipath TCP

Change-Id: I61919386f39245ab748aa00576db6a9c7af50991
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
6 years agoAdded scan reply logic in scan request function. 33/167233/2 accepted/tizen/unified/20180123.061129 submit/tizen/20180119.051933
Niraj Kumar Goit [Tue, 16 Jan 2018 08:56:24 +0000 (14:26 +0530)]
Added scan reply logic in scan request function.

Added scan reply logic in scan request function to fix
scan callback issue when previous scan is already in progress.

Change-Id: I1b10b29776389e074719ab0f2f80d539fe7f0083
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
6 years agoFix commnents in network-cm-intf.h 53/165153/1 accepted/tizen/unified/20171228.065014 submit/tizen/20171227.071346
Taesoo Jun [Wed, 27 Dec 2017 00:46:19 +0000 (09:46 +0900)]
Fix commnents in network-cm-intf.h

Change-Id: Idd27a9e4901321dc65bd1293f298e09fce413ac7

6 years agolibnet-client: Receive NetworkConfigChanged Signal and notify to CAPI 41/163641/1 accepted/tizen/unified/20171219.072631 submit/tizen/20171218.085650
Saurav Babu [Tue, 12 Dec 2017 14:18:24 +0000 (19:48 +0530)]
libnet-client: Receive NetworkConfigChanged Signal and notify to CAPI

This patch receives NetworkConfigChanged from net-config and notify
changed events to CAPI.

Change-Id: Icc62114ad4948b1ec0f9b916982c87784592e4ff
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoMove ipv6 preferred API to profile header 14/163414/2 accepted/tizen/unified/20171212.064757 submit/tizen/20171211.062320
Seonah Moon [Mon, 11 Dec 2017 05:34:48 +0000 (14:34 +0900)]
Move ipv6 preferred API to profile header

Change-Id: I107cede35267c66d04f8c5e7c49b65ea2d1662a2

6 years agoMerge "Added APIs get the tcp dump and network state" into tizen accepted/tizen/unified/20171206.063102 submit/tizen/20171205.053202
taesub kim [Tue, 5 Dec 2017 05:17:30 +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 80/157280/4
taesub kim [Tue, 24 Oct 2017 05:01:03 +0000 (14:01 +0900)]
Added APIs get the tcp dump and network state

Change-Id: I1bbf32033d15e506d3f10425577b9148ca85e98d
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoMerge "add new API for preferred Ipv6 address" into tizen accepted/tizen/unified/20171117.125012 submit/tizen/20171116.232504
taesub kim [Wed, 15 Nov 2017 07:16:45 +0000 (07:16 +0000)]
Merge "add new API for preferred Ipv6 address" into tizen

6 years agoUse connman Dbus method "SpecificScan" to search specific AP. 62/159862/1 accepted/tizen/unified/20171115.061157 submit/tizen/20171113.231943
Niraj Kumar Goit [Mon, 13 Nov 2017 09:08:02 +0000 (14:38 +0530)]
Use connman Dbus method "SpecificScan" to search specific AP.

Change-Id: Ife4a5eaf4c08748a40f1f23a9b8a63dd9de6a42f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
6 years agoadd new API for preferred Ipv6 address 34/159334/4
Seonah Moon [Thu, 2 Nov 2017 09:50:46 +0000 (18:50 +0900)]
add new API for preferred Ipv6 address

Change-Id: Ib2bb81c6711d71053720639648dac3310e29c7f2

6 years ago[CID-43867] Check return value 81/154681/1 accepted/tizen/unified/20171013.190324 submit/tizen/20171012.045027
Seonah Moon [Wed, 11 Oct 2017 05:13:20 +0000 (14:13 +0900)]
[CID-43867] Check return value

Change-Id: I5cd69d00aa8a2daac17027f0ef11889fc3780155

6 years agoAdd support for metered network 76/148676/3 accepted/tizen/unified/20170914.065437 submit/tizen/20170913.024954
Jaehyun Kim [Fri, 8 Sep 2017 09:23:03 +0000 (18:23 +0900)]
Add support for metered network

Change-Id: I4e12ee7322190ca6924fd70d082e94a3b9990c1a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
6 years agoMerge "Fix memory leak" into tizen accepted/tizen/unified/20170913.071041 submit/tizen/20170911.125730
taesub kim [Mon, 11 Sep 2017 00:33:12 +0000 (00:33 +0000)]
Merge "Fix memory leak" into tizen

6 years agoRemove dead code (WPS scan) 18/146118/2 accepted/tizen/unified/20170901.025938 submit/tizen/20170830.065642
taesub kim [Fri, 25 Aug 2017 04:54:40 +0000 (13:54 +0900)]
Remove dead code (WPS scan)

Change-Id: I02bd82aa4f7093bf5a0a13ebaeff8fd9f73135f1
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoFix memory leak 18/143418/2
chleun.moon [Thu, 10 Aug 2017 01:02:01 +0000 (10:02 +0900)]
Fix memory leak

Change-Id: Id54f9e1d5d0aafe63b7aa437690889f288442462
Signed-off-by: cheoleun <chleun.moon@samsung.com>
6 years agoSave DHCP leased seconds received from connman in the profile 09/142209/1 accepted/tizen/4.0/unified/20170828.223312 accepted/tizen/unified/20170811.021057 submit/tizen/20170808.043745 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100003
Abhishek Sansanwal [Thu, 3 Aug 2017 05:27:47 +0000 (10:57 +0530)]
Save DHCP leased seconds received from connman in the profile

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

6 years agoRemove newline char from dlog prints. 46/139546/1 accepted/tizen/4.0/unified/20170816.010424 accepted/tizen/unified/20170724.020251 submit/tizen/20170721.063342 submit/tizen/20170721.063811 submit/tizen_4.0/20170811.094300
Milind Ramesh Murhekar [Wed, 19 Jul 2017 09:06:22 +0000 (14:36 +0530)]
Remove newline char from dlog prints.

Change-Id: Ic76343f76b0588d3724b3cfb967c1aebadc9d9e3
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
6 years agoUpdated dns address for IPv6 when profile is modified 30/129430/3 accepted/tizen/unified/20170602.154220 submit/tizen/20170601.042236
Seonah Moon [Tue, 16 May 2017 10:29:02 +0000 (19:29 +0900)]
Updated dns address for IPv6 when profile is modified

Change-Id: I33500f31f2d7a29b1d907cb155484b42573aa5ff
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
6 years agoMoved *.so file to devel package 51/131251/1
Seonah Moon [Fri, 26 May 2017 04:53:22 +0000 (13:53 +0900)]
Moved *.so file to devel package

Change-Id: Ib33679f1763f4bf409c644971d6d622e1bafca8b
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
6 years agoReplaced sscanf() with snprintf() #2 46/128246/1 accepted/tizen/unified/20170510.013002 submit/tizen/20170508.081935 tizen_4.0.m1_release
taesub kim [Mon, 8 May 2017 07:41:48 +0000 (16:41 +0900)]
Replaced sscanf() with snprintf() #2

Change-Id: I0a749bbb352d7f58c8187c04dfc4072c860a6245
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>