rtos/tinyara.git
6 years agomove codec headers from protocol to codecs
kang [Sat, 2 Sep 2017 05:33:50 +0000 (14:33 +0900)]
move codec headers from protocol to codecs

6 years agomove the netlib module from protocol to netutils
kang [Sat, 2 Sep 2017 05:24:54 +0000 (14:24 +0900)]
move the netlib module from protocol to netutils

6 years agoMerge branch 'master' into folder_modification
pillip8282 [Sat, 2 Sep 2017 04:24:28 +0000 (13:24 +0900)]
Merge branch 'master' into folder_modification

6 years agoMerge pull request #498 from davidfather/wifi_hahm
pillip8282 [Sat, 2 Sep 2017 04:19:11 +0000 (13:19 +0900)]
Merge pull request #498 from davidfather/wifi_hahm

Move slsi_wifi from apps/ to external/

6 years agoUpdate Make.defs
davidfather [Sat, 2 Sep 2017 03:25:03 +0000 (12:25 +0900)]
Update Make.defs

6 years agoMerge pull request #489 from tadziopazur/i2c_init_for_github
sunghan-chang [Fri, 1 Sep 2017 10:41:47 +0000 (19:41 +0900)]
Merge pull request #489 from tadziopazur/i2c_init_for_github

S5J I2C: fix bus initialization.

6 years agoMerge pull request #496 from sunghan-chang/iotivity
btheosam [Fri, 1 Sep 2017 10:07:30 +0000 (19:07 +0900)]
Merge pull request #496 from sunghan-chang/iotivity

fix issues at iotivity default configuration

6 years agoartik053/iotivity: update defconfig through latest menuconfig
sunghan [Fri, 1 Sep 2017 10:01:20 +0000 (19:01 +0900)]
artik053/iotivity: update defconfig through latest menuconfig

There is no PREAPP_INIT config so that we can't use TASH with iotivity
default config. Update it as latest.

6 years agoiotivity: modify .gitignore for mbedtls which built at build time
sunghan [Fri, 1 Sep 2017 09:35:33 +0000 (18:35 +0900)]
iotivity: modify .gitignore for mbedtls which built at build time

The extlibs/mbedtls/mbedtls is copyed from os for header so that
it should not be merged at repository. Add mbedtls folder at gitignore.

6 years agoMove slsi_wifi from apps/ to external/
Seongil Hahm [Fri, 1 Sep 2017 08:04:53 +0000 (01:04 -0700)]
Move slsi_wifi from apps/ to external/

External libraries have to be moved to external/ folder. slsi_wifi belongs to this category, especially maintained by S.LSI.

6 years agoremove the route table features
kang [Fri, 1 Sep 2017 07:20:54 +0000 (16:20 +0900)]
remove the route table features

6 years agoMerge pull request #492 from sunghan-chang/flash_part
Taejun-Kwon [Fri, 1 Sep 2017 06:55:54 +0000 (15:55 +0900)]
Merge pull request #492 from sunghan-chang/flash_part

modify a dependancy of flash configuration on artik053 and sidk_s5jt200

6 years agomove tls from /os/net to /external
kang [Fri, 1 Sep 2017 06:44:07 +0000 (15:44 +0900)]
move tls from /os/net to /external

6 years agoMerge pull request #493 from jeongarmy/logm
sunghan-chang [Fri, 1 Sep 2017 06:12:35 +0000 (15:12 +0900)]
Merge pull request #493 from jeongarmy/logm

Fix build warnings in logm

6 years agoFix build warnings in logm
Ahreum Jeong [Fri, 1 Sep 2017 04:55:12 +0000 (13:55 +0900)]
Fix build warnings in logm
- Add missing include header
   . logm.c : sched.h for sched_lock/unlock, tinyara/arch.h for up_interrupt_context
   . logm_tashcmds.c : string.h for strcmp
- Delete logm_tash definition from logm.h because it is used in a file only

6 years agoMove network modules from the netutils folder to external
kang [Fri, 1 Sep 2017 02:34:30 +0000 (11:34 +0900)]
Move network modules from the netutils folder to external

6 years agoartik053: fix indentation of Kconfig
sunghan [Fri, 1 Sep 2017 00:51:11 +0000 (09:51 +0900)]
artik053: fix indentation of Kconfig

6 years agoartik053/sidk_s5jt200: modify a depnedancy of flash configurations
sunghan [Fri, 1 Sep 2017 00:45:33 +0000 (09:45 +0900)]
artik053/sidk_s5jt200: modify a depnedancy of flash configurations

For flash_part config, mtd should be enabled but disable_mountpoint
is not needed. But for automount config, disable_mountpoint should
be checked.

6 years agoMerge pull request #486 from pmarcinkiew/gcc7_smart
sunghan-chang [Thu, 31 Aug 2017 10:25:43 +0000 (19:25 +0900)]
Merge pull request #486 from pmarcinkiew/gcc7_smart

smart.c: Fix compilation error with GCC 7

6 years agoMerge pull request #487 from pmarcinkiew/gcc7_kdbg
sunghan-chang [Thu, 31 Aug 2017 10:24:39 +0000 (19:24 +0900)]
Merge pull request #487 from pmarcinkiew/gcc7_kdbg

kdbg_date.c: Fix compilation error on GCC 7

6 years agoS5J I2C: fix bus initialization.
Tomasz Wozniak [Thu, 31 Aug 2017 09:51:02 +0000 (11:51 +0200)]
S5J I2C: fix bus initialization.
Before the bus could only be taken once, otherwise it didn't work.
Even worse, second uninit triggered a DEBUGASSERT failure.

6 years agoMerge pull request #485 from junmin-kim/qemu_patch
sunghan-chang [Thu, 31 Aug 2017 09:58:47 +0000 (18:58 +0900)]
Merge pull request #485 from junmin-kim/qemu_patch

Add qemu patch and update qemu README.md

6 years agoMerge pull request #484 from jeongarmy/fix_license
sunghan-chang [Thu, 31 Aug 2017 09:08:28 +0000 (18:08 +0900)]
Merge pull request #484 from jeongarmy/fix_license

Fix wrong license

6 years agoFix wrong license and remove author from copyright paragraph
Ahreum Jeong [Thu, 31 Aug 2017 05:18:08 +0000 (14:18 +0900)]
Fix wrong license and remove author from copyright paragraph

websocket_main.c, i2c_uio.c
 - Original copyright and license should be kept when we get another open source.

gpio.c
 - This is a file we made, not opensource

other files
 - We won't support author on copyright

6 years agosmart.c: Fix compilation error with GCC 7
Jaroslaw Pelczar [Tue, 29 Aug 2017 10:02:29 +0000 (12:02 +0200)]
smart.c: Fix compilation error with GCC 7

Definition of variables depends on CONFIG_MTD_SMART_WEAR_LEVEL

Fixes following build error:

driver/mtd/smart.c:209:22: error: ‘gWearBitToLevelMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearBitToLevelMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~
driver/mtd/smart.c:198:22: error: ‘gWearLevelToBitMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearLevelToBitMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
6 years agoAdd qemu patch and update qemu README.md
junmin kim [Wed, 30 Aug 2017 11:16:05 +0000 (04:16 -0700)]
Add qemu patch and update qemu README.md

qemu-2.10.0-rc2_increase_ram_size.patch is needed for using ram-increased lm3s6965evb
Without this patch, user can use only original lm3s6965evb(64KB ram)

6 years agoMerge pull request #450 from sunghan-chang/menuconfig
btheosam [Thu, 31 Aug 2017 08:09:02 +0000 (17:09 +0900)]
Merge pull request #450 from sunghan-chang/menuconfig

refactor menuconfig structure

6 years agoMerge pull request #482 from sunghan-chang/permission
btheosam [Thu, 31 Aug 2017 08:00:44 +0000 (17:00 +0900)]
Merge pull request #482 from sunghan-chang/permission

change a file permmision to 644

6 years agoMerge pull request #477 from thapav/fixAPIerrors
sunghan-chang [Thu, 31 Aug 2017 07:57:38 +0000 (16:57 +0900)]
Merge pull request #477 from thapav/fixAPIerrors

Fix wrong filenames

6 years agokdbg_date.c: Fix compilation error on GCC 7
Jaroslaw Pelczar [Tue, 29 Aug 2017 10:00:49 +0000 (12:00 +0200)]
kdbg_date.c: Fix compilation error on GCC 7

This symbol is used only in day_of_week() function

Fixes following error:

kdbg_date.c:76:30: error: ‘g_dayofweek’ defined but not used
[-Werror=unused-const-variable=]
static FAR const char *const g_dayofweek[] = {

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
6 years agoMerge branch 'master' into folder_modification
kang [Thu, 31 Aug 2017 06:15:51 +0000 (15:15 +0900)]
Merge branch 'master' into folder_modification

6 years agoMove modules in netutils to external folder
kang [Thu, 31 Aug 2017 06:11:50 +0000 (15:11 +0900)]
Move modules in netutils to external folder

6 years agoMerge pull request #483 from sunghan-chang/external
pillip8282 [Thu, 31 Aug 2017 06:10:55 +0000 (15:10 +0900)]
Merge pull request #483 from sunghan-chang/external

Add an include path for external

6 years agoAdd an include path for external at every Make.defs
sunghan [Thu, 31 Aug 2017 05:50:24 +0000 (14:50 +0900)]
Add an include path for external at every Make.defs

add this to use external APIs easily like below
  #include <xxx.h>

6 years agochange a file permmision to 644
sunghan [Thu, 31 Aug 2017 05:06:00 +0000 (14:06 +0900)]
change a file permmision to 644

6 years agoMerge pull request #473 from jeongarmy/fix_codingrule
sunghan-chang [Thu, 31 Aug 2017 02:25:47 +0000 (11:25 +0900)]
Merge pull request #473 from jeongarmy/fix_codingrule

Fix coding rule error in os folder

6 years agoMerge pull request #481 from jeongchanKim/kernel_codingrule
sunghan-chang [Thu, 31 Aug 2017 01:57:45 +0000 (10:57 +0900)]
Merge pull request #481 from jeongchanKim/kernel_codingrule

Fix coding rule error : apps

6 years agoFix coding rule error in os folder
Ahreum Jeong [Wed, 30 Aug 2017 09:48:14 +0000 (18:48 +0900)]
Fix coding rule error in os folder

6 years agoFix coding rule error : apps
jc_.kim [Thu, 31 Aug 2017 00:46:41 +0000 (09:46 +0900)]
Fix coding rule error : apps

apps/example/nxplayer
apps/example/testcase
apps/example/wave_gen
apps/system/utils

6 years agoFix wrong filenames
Vidisha Thapa [Wed, 30 Aug 2017 13:55:42 +0000 (19:25 +0530)]
Fix wrong filenames

This patch fixes wrong file names of the files:
lib_rawinstream.c
lib_rawoutstream.c
lib_rawsistream.c
lib_rawsostream.c

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
6 years agoMerge pull request #475 from jeongarmy/ttrace
sunghan-chang [Wed, 30 Aug 2017 10:45:36 +0000 (19:45 +0900)]
Merge pull request #475 from jeongarmy/ttrace

Fix unchanged function name in lib_ttrace.c and update readme

6 years agoFix unchanged function name in lib_ttrace.c and readme file
Ahreum Jeong [Wed, 30 Aug 2017 10:04:32 +0000 (19:04 +0900)]
Fix unchanged function name in lib_ttrace.c and readme file
- trace_begin/end_u -> trace_begin/end_uid
- create_packet_u -> create_packet_uid

6 years agoMerge pull request #474 from sunghan-chang/makefile
davidfather [Wed, 30 Aug 2017 10:19:43 +0000 (19:19 +0900)]
Merge pull request #474 from sunghan-chang/makefile

fixup: Deliver the EXTDIR definition for external folder path on Make…

6 years agofixup: Deliver the EXTDIR definition for external folder path on Makefile
sunghan [Wed, 30 Aug 2017 10:09:57 +0000 (19:09 +0900)]
fixup: Deliver the EXTDIR definition for external folder path on Makefile

EXTDIR should be delevered through LibTargets.mk to use it for compilation flag.

6 years agoMerge pull request #469 from jeongarmy/fix_svace
Taejun-Kwon [Wed, 30 Aug 2017 07:58:24 +0000 (16:58 +0900)]
Merge pull request #469 from jeongarmy/fix_svace

Fix svace issues in arastorage, fs and testcases for them

6 years agoMerge pull request #443 from junmin-kim/ide_specfile
sunghan-chang [Wed, 30 Aug 2017 07:46:16 +0000 (16:46 +0900)]
Merge pull request #443 from junmin-kim/ide_specfile

Add sidk_s5jt200 debug spec file

6 years agoMerge pull request #472 from jeongarmy/ttrace
sunghan-chang [Wed, 30 Aug 2017 07:45:31 +0000 (16:45 +0900)]
Merge pull request #472 from jeongarmy/ttrace

Change some API names and update version in doxygen in T-trace

6 years agoMerge pull request #415 from EunBongSong/ds-dev3
sunghan-chang [Wed, 30 Aug 2017 07:43:50 +0000 (16:43 +0900)]
Merge pull request #415 from EunBongSong/ds-dev3

DS

6 years agoMerge pull request #471 from junmin-kim/lib_codingrule
sunghan-chang [Wed, 30 Aug 2017 07:38:48 +0000 (16:38 +0900)]
Merge pull request #471 from junmin-kim/lib_codingrule

Fix coding rule error in lib

6 years agoChange t-trace API names for unique id from trace_begin/end_u to trace_begin/end_uid...
Ahreum Jeong [Wed, 30 Aug 2017 07:24:54 +0000 (16:24 +0900)]
Change t-trace API names for unique id from trace_begin/end_u to trace_begin/end_uid to make it clear.
'u' means unique ID for distinguishing events.

6 years agoAdd sidk_s5jt200 debug spec file
junmin kim [Wed, 23 Aug 2017 10:26:50 +0000 (03:26 -0700)]
Add sidk_s5jt200 debug spec file

6 years agoFix coding rule error in lib
junmin kim [Wed, 30 Aug 2017 07:12:31 +0000 (00:12 -0700)]
Fix coding rule error in lib

lib_exp2.c : spaces required around that '='
libm.h : space required after that close brace '}'

6 years agoFix svace issues in arastorage and testcases for that
Ahreum Jeong [Wed, 30 Aug 2017 03:31:31 +0000 (12:31 +0900)]
Fix svace issues in arastorage and testcases for that

utc_arastorage_main.c
- Use of vulnerable function 'sprintf' at utc_arastorage_main.c:165. This function is unsafe, use snprintf instead.
- After having been assigned to NULL value at utc_arastorage_main.c:851, pointer '0' is passed as 1st parameter in call to function 'cursor_move_last' at utc_arastorage_main.c:851, where it is dereferenced at cursor.c:80.
- After having been assigned to NULL value at utc_arastorage_main.c:773, pointer '0' is passed as 1st parameter in call to function 'cursor_move_next' at utc_arastorage_main.c:773, where it is dereferenced at cursor.c:86.
- After having been assigned to NULL value at utc_arastorage_main.c:812, pointer '0' is passed as 1st parameter in call to function 'cursor_move_prev' at utc_arastorage_main.c:812, where it is dereferenced at cursor.c:92.
- Expression '(count)' has type 'tuple_id_t' ('unsigned int'), so it's never less than zero

storage_interface.c
- Copying from string 'filename' to '&g_storage_write_buffer.file_name[0]' without null termination at storage_interface.c:557 by calling function 'memcpy'.
- Copying from parameter string 'name' to '&rel->name[0]' at storage_interface.c:184 may form a non-terminated C string of size 17.

aql_exec.c
- This statement in the source code might be unreachable during program execution.

index_bplustree.c
- Dynamic memory referenced by 'path' was allocated at index_bplustree.c:1376 by calling function 'malloc' and lost at index_bplustree.c:1391.
- The handle 'fd' was created at storage_abstraction.c:51 by calling function 'storage_open' at index_bplustree.c:522 and lost at index_bplustree.c:527.

relation.c
- Dynamic memory referenced by 'cursor' was allocated at relation.c:1064 by calling function 'malloc' and lost at relation.c:1102.

6 years agoFix svace issues in mtd and testcases for filesystem.
Ahreum Jeong [Wed, 30 Aug 2017 03:31:00 +0000 (12:31 +0900)]
Fix svace issues in mtd and testcases for filesystem.

fs_main.c
- The handle 'dirp' was created at fs_main.c:629 by calling function 'opendir' and lost at fs_main.c:631.
- The handle 'ret' was created at fs_main.c:392 by calling function 'dup' and lost at fs_main.c:393.
- Handler 'fd' is passed to a function at fs_main.c:489 by calling function 'close' after the handler is closed again at fs_main.c:485 by calling function 'close'.
- The handle 'fd1' was created at fs_main.c:447 by calling function 'dup2' and lost at fs_main.c:449.
- The handle 'dirp' was created at fs_main.c:818 by calling function 'opendir' and lost at fs_main.c:819.

mtd_partition.c
- Use of vulerable function 'strcpy' at mtd_partition.c:572. This function is unsafe, use strncpy instead.

6 years agonetutils/libcoap : minor patch to fix build warning on CPP compiler
Jin-Seong Kim [Mon, 14 Aug 2017 09:02:17 +0000 (18:02 +0900)]
netutils/libcoap : minor patch to fix build warning on CPP compiler

This commit is minor patch to fix build warning on CPP compiler
1. compile warning log
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
  if (size <= (bit >> 3)) {
2. solution
adding casting operator after bit shift operations

Change-Id: I71a512951523f0fb7317e684fdc0f4d8ee4a9cd8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/http: add dependency
Junyeon LEE [Fri, 11 Aug 2017 10:45:57 +0000 (03:45 -0700)]
netutils/http: add dependency

This commit addes dependency in Kconfig.
 * Webclient makes linkding error without Webserver.
 * Easysetup makes linkding error without TLS.

Change-Id: I14dc58b5da2390faaf9fa8d08ba6d947cf788ee9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agoarch/artik053 : trivial patch to fix linking error
Jin-Seong Kim [Fri, 11 Aug 2017 02:25:09 +0000 (11:25 +0900)]
arch/artik053 : trivial patch to fix linking error

This commit is trivial patch to fix linking error

1. Configuration : artik053/minimal
2. Build error log
LD: tinyara
In function `board_i2c_initialize':
artik053_boot.c:131: undefined reference to `s5j_i2c_register'
artik053_boot.c:132: undefined reference to `s5j_i2c_register'
make[1]: *** [../build/output/bin/tinyara] Error 1

CONFIG_S5J_I2C configuration is needed to use s5j_i2c_register function

Change-Id: I67fc21ae8a9493f132e5451dd65f4cd347c8afde
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoexamples/libcoap : minor updates on libcoap examples
Jin-Seong Kim [Thu, 10 Aug 2017 02:47:28 +0000 (11:47 +0900)]
examples/libcoap : minor updates on libcoap examples

This commit is minor updates on libcoap examples
1. build error fix without WITH_MBEDTLS
2. be able to test TCP without WITH_MBEDTLS

Change-Id: I44116c6b6a7768891e6dbaeaf9d95e90c6096e57
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoexamples/libcoap : minor patch on select timeout
Jin-Seong Kim [Wed, 9 Aug 2017 00:19:08 +0000 (09:19 +0900)]
examples/libcoap : minor patch on select timeout

This commit is minor patch on select timeout
 - set timeout to wait_seconds when timeout exceeds it
 - clear readfds when application exits

Change-Id: Ie477b6dc868bbc4d69941579059b0d587300b4ab
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonet/tls: remove ununsed netdb dependency
Junyeon LEE [Thu, 10 Aug 2017 13:15:44 +0000 (06:15 -0700)]
net/tls: remove ununsed netdb dependency

Now that LIBC_NETDB is default configuration for running TLS.
So, removes all ununsed NETDB dependency code.

Change-Id: I96126592b67f1e00f9e29cf90b8af81ce02073b4
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetdb: Fix build error by LIBC_NETDB dependency
EunBong Song [Wed, 9 Aug 2017 11:00:39 +0000 (04:00 -0700)]
netdb: Fix build error by LIBC_NETDB dependency

This patch fixed build error by LIBC_NETDB dependency.

Change-Id: Ib037c10197b56a9a887d72d781258dc714cba121
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agolwm2m: remove unused header files.
EunBong Song [Wed, 9 Aug 2017 04:20:56 +0000 (21:20 -0700)]
lwm2m: remove unused header files.

apps/include/netutils/commandline.h and apps/include/netutils/connection.h
are not used anymore. Remove this.

Change-Id: Ie1831be7bbda0570c21426f267ce6d5fb31a80b7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonet/tls: remove unused file in tls
Junyeon LEE [Wed, 9 Aug 2017 14:02:36 +0000 (07:02 -0700)]
net/tls: remove unused file in tls

This commit removes unused source codes and README file in tls.

Change-Id: Iceac673bbe42cbbe1f2a909541447cff76aeb10f
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetutils: remove unused header files
Junyeon LEE [Wed, 9 Aug 2017 13:32:06 +0000 (06:32 -0700)]
netutils: remove unused header files

Remove unused httpd, thttpd header files and remove unused
code in webserver example's Makefile.

Change-Id: Id2542a74a8572bbd3adae87b2473bfe790642301
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agonetutils/libcoap : moves CFLAGS on Makefile to libcoap config.h
Jin-Seong Kim [Wed, 9 Aug 2017 01:58:33 +0000 (10:58 +0900)]
netutils/libcoap : moves CFLAGS on Makefile to libcoap config.h

This commit is patch to move CFLAGS on Makefile to libcoap config.h
CFLAG definitions used for TinzenRT are located in Makefile
 - WITH_POSIX, WITH_MBEDTLS, NDEBUG and WITH_TCP
accordingly build sequence, build error can be happened without CFLAGS
to prevent compilation error due to CFLAGS, those definitions are moved
to config.h (configuration file only used by libcoap)

Change-Id: Ic5d1d0fb2bb7c892555393daf54c3f9d427cc951
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/libcoap : add Samsung license statements
Jin-Seong Kim [Wed, 9 Aug 2017 03:02:45 +0000 (12:02 +0900)]
netutils/libcoap : add Samsung license statements

This commit is patch to add Samsung license statements
 - Apache-2.0 license

Change-Id: I6febc083800615c9de6dbde5e43e4fbe3c155e4d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils: cosmetic change of header files for c++ reference
EunBong Song [Wed, 9 Aug 2017 01:03:32 +0000 (18:03 -0700)]
netutils: cosmetic change of header files for c++ reference

This patch changes all header files for cplusplus reference.

Change-Id: I40a16b13291a3bb8c4c3e03a4c33cacf56168765
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agoTurn on DISABLE_POLL when NFILE_DESCRIPTORS = 0
Mikhail Cherkashin [Tue, 8 Aug 2017 10:12:46 +0000 (13:12 +0300)]
Turn on DISABLE_POLL when NFILE_DESCRIPTORS = 0

When NFILE_DESCRIPTORS = 0, set DISABLE_POLL to y and make it
invisible.

Change-Id: I846e1da62d1cfffc5052a99a8e6fcc7bfe2a96b3
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoAdding dependencies of NFILE_DESCRIPTORS > 0
Mikhail Cherkashin [Fri, 4 Aug 2017 10:31:37 +0000 (13:31 +0300)]
Adding dependencies of NFILE_DESCRIPTORS > 0

GPIO, DEV_NULL and DEV_ZERO configs use file descriptors,
so the dependency is needed.

Change-Id: I3858029534c90592d0c2fbddcdd50f28ed1c941a
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoFixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0
Mikhail Cherkashin [Tue, 8 Aug 2017 16:22:34 +0000 (19:22 +0300)]
Fixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0

Most common problem with build fixed: in file fs_close.c an undefined
variable appears when NFILE_DESCRIPTORS=0 and NSOCKET_DESCRIPTORS != 0.

Change-Id: Ia7f2417a37ad3052a04c119b330b41a401de40a1
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agonetutils/libcoap : bug fixes for CoAP over TCP
Jin-Seong Kim [Tue, 8 Aug 2017 08:29:58 +0000 (17:29 +0900)]
netutils/libcoap : bug fixes for CoAP over TCP

This commit is patch for bug fixes for CoAP over TCP
1. patch for memory leakage issue
 - some pdus are not freed when coap_send returns COAP_INVALID_TID
2. add waiting routine on libcoap-server
 - waiting until g_operating_status is SERVER_STOPPED state
 - duplicated libcoap-server process can cause abort during long-run test
3. add debug logs for further tracing

Change-Id: Ib1173a6f24691eebae5860727227d85c09972ef3
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoiperf: Fix data abort in iperf client.
EunBong Song [Mon, 7 Aug 2017 22:18:04 +0000 (15:18 -0700)]
iperf: Fix data abort in iperf client.

Following test cause data abort of iperf client.
iperf -s
iperf -c 127.0.0.1
iperf -c 127.0.0.1

Data abort can happen when iperf_run_client returns negative value.
In this case, iperf calls iperf_free_test -> iperf_client_end ->
iperf_free_test. This cause data abort because test is already freed
in iperf_free_test however iperf_client_end tries to use test pointer.
And also iperf_free_test tries to free again test pointer.
This patch re-organize the process this procedure.

Change-Id: I0ad6d986cd2457648eb2a99a078b8fa3af9e3ed7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agoiperf: test->ctrl_sck exists per test not a stream.
EunBong Song [Mon, 7 Aug 2017 22:14:27 +0000 (15:14 -0700)]
iperf: test->ctrl_sck exists per test not a stream.

iperf_client_end tries to close test->ctrl_sck per stream.
This is not correct because test->ctrl_sck exists per test.

Change-Id: I2a29de218381fe84dcfdc60a82be0d769341de2b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agoartik053: Introduce hello config
Mikhail Cherkashin [Fri, 14 Jul 2017 10:24:33 +0000 (13:24 +0300)]
artik053: Introduce hello config

hello config includes only features which are needed for just running
hello app. This config shows minimal footprint of artik053 board.

Change-Id: Iba063d06557f3ad4095734397769a30724a574bf
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/libcoap : patch for parsing error on CoAP over TCP
Jin-Seong Kim [Mon, 7 Aug 2017 01:03:16 +0000 (10:03 +0900)]
netutils/libcoap : patch for parsing error on CoAP over TCP

This commit is patch for parsing error on CoAP over TCP
 When parse transport type of TCP header,
 coap_get_tcp_header_type_from_initbyte should be used
 The size used on coap_get_tcp_header_type_from_size means that
 option and payload length except for header and token
 (size = pdu->length - size of header - length of token)

problem 1. Token value is not parsed properly on CoAP over TCP case
 - coap_convert_to_tcp_pdu has bugs to find start potiner of token
problem 2. Code value is not parsed proplery on CoAP over TCP case
 - node->pdu is created accordingly its transport type
 - when coap_get_code called, wrong tranport type is used

Change-Id: Iddec317f797fe5934a1025acc60a3ffe9608c747
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoapp/example: nettest app for linux
bossjisu [Fri, 4 Aug 2017 06:23:38 +0000 (23:23 -0700)]
app/example: nettest app for linux

nettest sample application for linux.

Change-Id: Idf328c93dbea9adf8de68c647cf7e8388863df12
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
6 years agoiperf: prevent client infinite loop
EunBong Song [Mon, 7 Aug 2017 02:05:23 +0000 (19:05 -0700)]
iperf: prevent client infinite loop

Sometimes iperf client's write_set fds are never cleared and this can cause
infinite loop. This situation can happen when write_set is not cleared but
test's state is not running because clear write_set is only done in running
state. This patch adds clear write_set fds if test state is TEST_END and th
ere is not cleared write_fds and this can prevent infinite loop.

Change-Id: I3329fc1fa2454793ab2dfcd16eab177294fe3a31
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/libcoap : patch for parsing of COAP_UDP options
Jin-Seong Kim [Fri, 4 Aug 2017 00:21:24 +0000 (09:21 +0900)]
netutils/libcoap : patch for parsing of COAP_UDP options

This commit is patch for parsing of COAP_UDP options
 - coap_option_interator_init2 doesn't have COAP_UDP case
   it causes un-expected memory access
 - coap_add_option2 doesn't have COAP_UDP case,
   it causes failed to adding option field on PDU

Change-Id: I6982d3e2c71d01a8cea4a6b7c83a199f0a1ac506
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agofixup! netutils/webserver : Fix problems from static analysis tool.
Jin-Seong Kim [Wed, 2 Aug 2017 01:41:01 +0000 (10:41 +0900)]
fixup! netutils/webserver : Fix problems from static analysis tool.

Add return value check for pthread_attr_init.

Change-Id: Ie15633d16881934eeb2a1fab3775fb1f378d8330
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/webserver : Fix problems from static analysis tool
Jin-Seong Kim [Wed, 2 Aug 2017 00:26:12 +0000 (09:26 +0900)]
netutils/webserver : Fix problems from static analysis tool

This commit is patch for fixing problems from static analysis tool
 - to resolve issues of unchecked function returns

Change-Id: I456698096d4887d8f64c896db4f614cea692ca40
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/libcoap : Fix problem from static analysis tool
Jin-Seong Kim [Tue, 1 Aug 2017 08:40:48 +0000 (17:40 +0900)]
netutils/libcoap : Fix problem from static analysis tool

This commit is patch for fixing problems fro static analysis tool
- Add check return value of pthread_attr_init

Change-Id: I7ae7369c0c0cfbabcd9c0298836943d5260e7e4e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/libcoap : patch to add timeout on accept socket
Jin-Seong Kim [Tue, 1 Aug 2017 08:38:55 +0000 (17:38 +0900)]
netutils/libcoap : patch to add timeout on accept socket

This commit is patch to add timeout on accept socket
 - to prevent holding socket on libcoap-server, added timeout on socket

Change-Id: Ibd40f9ba9c69f272f10af91bed900a0b8faa40b8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoexamples/tls_server: fix unclosed socket problem.
Junyeon LEE [Tue, 1 Aug 2017 04:57:11 +0000 (13:57 +0900)]
examples/tls_server: fix unclosed socket problem.

If tls server would be executed double at the same time,
bind or listen socket can't be released properly.

Change the client_fd and listned_fd values from global
to local variable.

Change-Id: I0c3d97b5ade7692e92fa4967f04763d2295ab14f
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
6 years agos5j: add exception handling codes in spi and i2c drivers
Wonsang Ryou [Wed, 2 Aug 2017 08:18:52 +0000 (17:18 +0900)]
s5j: add exception handling codes in spi and i2c drivers

This patch adds the codes in order to check if the port number is valid
in spi and i2c drivers. If the port is invalid, the exception handling
code returns NULL.

Change-Id: I9c5360ce58cd0c3778e048377ea92472ac31e21b
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agonetutils/mqtt: add exception handling code
Wonsang Ryou [Tue, 1 Aug 2017 05:06:43 +0000 (14:06 +0900)]
netutils/mqtt: add exception handling code

This patch adds exception handling code in mosquitto library.

Change-Id: I6e1c0fe678e266f9de7d117251bbf69a521f676e
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agonetutils/mdns: add exception handling codes
Wonsang Ryou [Tue, 1 Aug 2017 05:01:09 +0000 (14:01 +0900)]
netutils/mdns: add exception handling codes

This patch adds exception handling codes in mdns.c and mdnsd.c.

Change-Id: I27ae07c1b34638faee7bc3a1cd8b33bde4f761ea
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agofixup! netutils/libcoap : TCP patch for CoAP observe mode
Jin-Seong Kim [Mon, 31 Jul 2017 09:32:40 +0000 (18:32 +0900)]
fixup! netutils/libcoap : TCP patch for CoAP observe mode

Change-Id: I56051750d8a69d71bb9a0425999986be2605fc5c
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agowifi driver: Fix problem of multiple declaration of cm_ctx
EunBong Song [Mon, 31 Jul 2017 08:25:54 +0000 (01:25 -0700)]
wifi driver: Fix problem of multiple declaration of cm_ctx

This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.

Change-Id: I3674f0e6726ff82b65ce20be46884e3f0463beea
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agowap supplicant: Fix problem of multiple declaration of fn_destroy
EunBong Song [Mon, 31 Jul 2017 08:24:22 +0000 (01:24 -0700)]
wap supplicant: Fix problem of multiple declaration of fn_destroy

This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.

Change-Id: I07221ca05b3952b42ddae247b307cd2909a909d2
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agowifi driver: move STRUCT_PACKED to compiler.h
EunBong Song [Mon, 31 Jul 2017 08:22:50 +0000 (01:22 -0700)]
wifi driver: move STRUCT_PACKED to compiler.h

There are duplication define for STRUCT_PACKED in wifi driver.
This patch moves STRUCT_PACKED define to compiler.h.

Change-Id: Ie9af489177364347e3a9c7e260f64df7104ffe95
Signed-off-by: EunBong Song <eunb.song@samsung.com>
6 years agonetutils/libcoap : add listen_sockfd on coap_context_t structure
Jin-Seong Kim [Mon, 31 Jul 2017 07:52:07 +0000 (16:52 +0900)]
netutils/libcoap : add listen_sockfd on coap_context_t structure

This commit is patch to add listen_sockfd on coap_context_t structure
 - To close or reuse listen socket, add listen_sockfd on coap_context_t

Change-Id: Idd4297a181715c85549e53348c96200e309f2848
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/libcoap : TCP patch for CoAP observe mode
Jin-Seong Kim [Mon, 31 Jul 2017 07:30:32 +0000 (16:30 +0900)]
netutils/libcoap : TCP patch for CoAP observe mode

This commit is TCP patch for CoAP observe mode

Change-Id: Ie6617414b3674bee73997d071ccba034ea1d4bf2
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agofilesystem : add test application
kim jin hong [Fri, 28 Jul 2017 09:45:39 +0000 (18:45 +0900)]
filesystem : add test application

add : procfs_test.c : procfs test application
      ramfs_test.c : ramfs test application
      romfs_test.c : romfs test application
      write_remove_test.c : smartfs test application

Change-Id: Ic729e154335245368cb5030836cb861a3e6a03bd
Signed-off-by: kim jin hong <jh0703.kim@samsung.com>
6 years agonetutils/libcoap : major patches to handle TCP packets on libcoap
Jin-Seong Kim [Fri, 28 Jul 2017 07:13:40 +0000 (16:13 +0900)]
netutils/libcoap : major patches to handle TCP packets on libcoap

This commit is major patches to handle TCP packets on libcoap

Change-Id: I4c760487fd83f3d49611c2dbe3b91f860ba02680
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/libcoap : Introduce new APIs for CoAP over TCP
Jin-Seong Kim [Thu, 27 Jul 2017 10:27:55 +0000 (19:27 +0900)]
netutils/libcoap : Introduce new APIs for CoAP over TCP

This commit is patch to introduce new APIs for CoAP over TCP
- newly added API list
 1. coap_convert_to_tcp_pdu : converts UDP pdu to TCP pdu
 2. coap_debug_pdu_print : print CoAP pdu in details

Change-Id: I1a2e6c9167309b1676071818ef1bfaeb2b34552c
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agonetutils/libcoap : introduce patch to support TCP
Jin-Seong Kim [Wed, 5 Jul 2017 07:51:20 +0000 (16:51 +0900)]
netutils/libcoap : introduce patch to support TCP

This commit is to add patch to support TCP (iotivity 1.3.0-rel)
 - https://github.com/iotivity/iotivity

Change-Id: I2b10530c0e152663b3360f6e3247154f7769102e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
6 years agoDo not include shell when not enabled
Mikhail Cherkashin [Fri, 28 Jul 2017 11:14:25 +0000 (14:14 +0300)]
Do not include shell when not enabled

Excluding shell when ENABLE_SHELL config is undefined.

Change-Id: I94dfbc5155d5ccbdd012294ec0848c7f6e4836b3
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoexamples/mdns_test: netutils/mdns: add 'mdns register' command
Wonsang Ryou [Thu, 27 Jul 2017 09:10:15 +0000 (18:10 +0900)]
examples/mdns_test: netutils/mdns: add 'mdns register' command

This patch adds 'mdns register' command in order to test the API
that is for registering mdns service. And, some exception handling
codes are also added to mdnsd_register_service() function.

Change-Id: Ib9e3ca938c060a1be5e08381b2e7107f06d06aeb
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
6 years agos5j/serial: Do not register uart devices without file descriptors
Mikhail Cherkashin [Mon, 24 Jul 2017 15:00:23 +0000 (18:00 +0300)]
s5j/serial: Do not register uart devices without file descriptors

Device nodes can only be accessed through file descriptors,
so when they are disabled (through CONFIG_NFILE_DESCRIPTORS=0)
we do not register uart device nodes.

Change-Id: I44ff2c8cfe0d6e4f4961bb1f6e570abb1dc31d3e
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
6 years agoapps iperf: Fix abort when iperf_connect fails
EunBong Song [Mon, 24 Jul 2017 10:57:29 +0000 (03:57 -0700)]
apps iperf: Fix abort when iperf_connect fails

if iperf_connect fails, it crashes in test->reporter_callback functions.
This patch fixes this problem.
And current iperf_client_end() try to send state after close ctrl socket.
This problem is also fixed by this patch.

Change-Id: I965e3e2b40f1e7e19d913342888c6fc43fa12675
Signed-off-by: EunBong Song <eunb.song@samsung.com>