sunghan-chang [Mon, 4 Sep 2017 01:50:45 +0000 (10:50 +0900)]
Merge pull request #495 from jeongarmy/fix_doxygen
Modify since in doxygen for Tizen RT v1.1
Ahreum Jeong [Fri, 1 Sep 2017 07:03:58 +0000 (16:03 +0900)]
Modify since in doxygen for Tizen RT v1.1
- pthread.h, signal.h, stdio.h, stdlib.h, unistd.h, tinyara/math.h, ttrace.h
Taejun-Kwon [Mon, 4 Sep 2017 01:34:34 +0000 (10:34 +0900)]
Merge pull request #508 from sunghan-chang/appinit
apps/init: bind a conditional
sunghan [Fri, 1 Sep 2017 10:20:40 +0000 (19:20 +0900)]
apps/init: bind a conditional
When CONFIG_SYSTEM_PREAPP_INIT is disabled, init should not be compiled.
So, bind it at Make.defs of init folder
sunghan-chang [Mon, 4 Sep 2017 01:08:20 +0000 (10:08 +0900)]
Merge pull request #505 from Samsung/pillip8282-patch-1
Update README.md
sunghan-chang [Mon, 4 Sep 2017 01:08:09 +0000 (10:08 +0900)]
Merge pull request #504 from jeongchanKim/kernel_builtin
Add FUNCNAME and change (APPNAME)_main to FUNCNAME for builtin apps
pillip8282 [Mon, 4 Sep 2017 00:56:21 +0000 (09:56 +0900)]
Update README.md
Add a prerequisites section
jc_.kim [Sun, 3 Sep 2017 23:06:04 +0000 (08:06 +0900)]
Add FUNCNAME and change (APPNAME)_main to FUNCNAME for builtin apps
pillip8282 [Sun, 3 Sep 2017 22:07:23 +0000 (07:07 +0900)]
Merge pull request #468 from kolipka/fix_lwip_addres_reuse
Fix LWIP address reuse issue
Konrad Lipner [Tue, 29 Aug 2017 12:31:45 +0000 (14:31 +0200)]
Fix LWIP address reuse issue
Fix #427
pillip8282 [Sat, 2 Sep 2017 08:45:32 +0000 (17:45 +0900)]
Merge pull request #466 from kolipka/fix_lwip_error_map
Fix LWIP-socket invalid error mapping
pillip8282 [Sat, 2 Sep 2017 08:43:59 +0000 (17:43 +0900)]
Merge pull request #467 from kolipka/fix_lwip_eof
Fix LWIP EOF issue when one side closed connection
Taejun-Kwon [Sat, 2 Sep 2017 08:12:09 +0000 (17:12 +0900)]
Merge pull request #500 from btheosam/surrender
Remove non-artik code from board init and add additional pin macros
bsvt [Sat, 2 Sep 2017 07:59:35 +0000 (00:59 -0700)]
Remove non-artik code from board init and add extra pin details
davidfather [Sat, 2 Sep 2017 07:28:46 +0000 (16:28 +0900)]
Merge pull request #499 from pillip8282/folder_modification
Folder modification
kang [Sat, 2 Sep 2017 07:25:37 +0000 (16:25 +0900)]
rename external/netlib as external/netutils
kang [Sat, 2 Sep 2017 06:35:58 +0000 (15:35 +0900)]
move the netutils README file from 'netutils' to 'external/include'
kang [Sat, 2 Sep 2017 05:59:47 +0000 (14:59 +0900)]
change a way to refer make.defs in external folders
kang [Sat, 2 Sep 2017 05:41:26 +0000 (14:41 +0900)]
change the keyword apps/netutils to external written in Make.defs
kang [Sat, 2 Sep 2017 05:33:50 +0000 (14:33 +0900)]
move codec headers from protocol to codecs
kang [Sat, 2 Sep 2017 05:24:54 +0000 (14:24 +0900)]
move the netlib module from protocol to netutils
pillip8282 [Sat, 2 Sep 2017 04:24:28 +0000 (13:24 +0900)]
Merge branch 'master' into folder_modification
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/
davidfather [Sat, 2 Sep 2017 03:25:03 +0000 (12:25 +0900)]
Update Make.defs
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.
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
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.
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.
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.
kang [Fri, 1 Sep 2017 07:20:54 +0000 (16:20 +0900)]
remove the route table features
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
kang [Fri, 1 Sep 2017 06:44:07 +0000 (15:44 +0900)]
move tls from /os/net to /external
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
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
kang [Fri, 1 Sep 2017 02:34:30 +0000 (11:34 +0900)]
Move network modules from the netutils folder to external
sunghan [Fri, 1 Sep 2017 00:51:11 +0000 (09:51 +0900)]
artik053: fix indentation of Kconfig
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.
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
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
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.
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
sunghan-chang [Thu, 31 Aug 2017 09:08:28 +0000 (18:08 +0900)]
Merge pull request #484 from jeongarmy/fix_license
Fix wrong license
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
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>
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)
btheosam [Thu, 31 Aug 2017 08:09:02 +0000 (17:09 +0900)]
Merge pull request #450 from sunghan-chang/menuconfig
refactor menuconfig structure
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
sunghan-chang [Thu, 31 Aug 2017 07:57:38 +0000 (16:57 +0900)]
Merge pull request #477 from thapav/fixAPIerrors
Fix wrong filenames
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>
Konrad Lipner [Tue, 29 Aug 2017 11:51:31 +0000 (13:51 +0200)]
Fix LWIP-socket invalid error mapping
Solves #424
kang [Thu, 31 Aug 2017 06:15:51 +0000 (15:15 +0900)]
Merge branch 'master' into folder_modification
kang [Thu, 31 Aug 2017 06:11:50 +0000 (15:11 +0900)]
Move modules in netutils to external folder
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
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>
sunghan [Thu, 31 Aug 2017 05:06:00 +0000 (14:06 +0900)]
change a file permmision to 644
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
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
Ahreum Jeong [Wed, 30 Aug 2017 09:48:14 +0000 (18:48 +0900)]
Fix coding rule error in os folder
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
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>
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
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
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…
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.
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
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
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
sunghan-chang [Wed, 30 Aug 2017 07:43:50 +0000 (16:43 +0900)]
Merge pull request #415 from EunBongSong/ds-dev3
DS
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
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.
junmin kim [Wed, 23 Aug 2017 10:26:50 +0000 (03:26 -0700)]
Add sidk_s5jt200 debug spec file
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 '}'
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.
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>