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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Junyeon LEE [Tue, 18 Jul 2017 04:59:11 +0000 (13:59 +0900)]
include/tls: summarize all error symbols in mbedTLS
This commit integrates all error symbols in mbedTLS for
easy searching error number.
Change-Id: Ia7cff5b8380e6bee939e91143e27be2872c01675
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Wonsang Ryou [Mon, 24 Jul 2017 06:14:34 +0000 (15:14 +0900)]
drivers/sensors: s5j/ppd42ns: modify ppd42ns dust sensor driver
This patch modifies ppd42ns driver according to Tizen RT device driver
model. The previous ppd42ns driver has implemented according to common
sensor API definition (os/include/tinyara/sensors/sensor.h). The common
sensor API will be removed.
The details are as follows.
1. remove common sensor API definition
: os/include/tinyara/sensors/sensor.h
2. modify ppd42ns driver according to Tizen RT device driver model
- implement open, close and read operations
- implement board dependent functions as callback
- implement the function for registering character driver
: os/drivers/sensors/ppd42ns.c
os/include/tinyara/sensors/ppd42ns.h
3. add Samsung S5JT200 code for implementing board dependent callback
: os/arch/arm/src/s5j/s5j_ppd42ns.c
os/arch/arm/src/s5j/s5j_ppd42ns.h
4. add sensor driver registering code on board initialization
: os/arch/arm/src/artik053/src/artik053_boot.c,
os/arch/arm/src/sidk_s5jt200/src/s5jt200_boot.c
5. modify ppd42ns example application using file operation
: apps/examples/sensor_test/ppd42ns_test.c
Change-Id: I14ae5e10a3624cf8bb7125137323fcc3bb6c50ca
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 10:27:08 +0000 (19:27 +0900)]
examples/dnsclient_test: make dns server port configurable in .config
This patch enables dnsclient_test app's server port to be configurable
in .config. You can set dns server's port number using the following
config variable.
- CONFIG_EXAMPLES_DNSCLIENT_TEST_SERVER_PORT
CONFIG_EXAMPLES_DNSCLIENT_TEST_SERVER_PORT can be configurable only
when CONFIG_NETDB_DNSSERVER_IPv4 is enabled.
Change-Id: I9fae97c85ab3fe91a7e3be0cb1f9534255072370
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 09:40:16 +0000 (18:40 +0900)]
netutils/ntpclient: make debug message option configurable in .config
This patch enables ntpclient's debug message option to be configurable
in .config. You can set debug message option using the following config
variable.
- CONFIG_NETUTILS_NTPCLIENT_DEBUG
Change-Id: Idff252265478b6006fe1995ac33e094c097b03e1
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 09:50:26 +0000 (18:50 +0900)]
examples/ntpclient_test: make ntp server port configurable in .config
This patch enables ntp server's port number to be configurable in
.config. You can set ntp server's port number using the following
config variable.
- CONFIG_EXAMPLES_NTPCLIENT_TEST_SERVER_PORT
Change-Id: I39e8f46cbfc677449771016ac4048abcc9165e78
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Jin-Seong Kim [Tue, 18 Jul 2017 05:32:00 +0000 (14:32 +0900)]
netutils/libcoap : patch to prevent memory leakage caused by observers
This commit is patch to prevent memory leakage caused by observers
- there is no routine to free observers for libcoap-server
- remained observers in a resource can cause memory leakage
Change-Id: Ib2aefc9cd5f9572f5170fc96f0f832e02692dfc9
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
bossjisu [Tue, 18 Jul 2017 13:05:35 +0000 (06:05 -0700)]
netutils/tls: fix error print
make tls_handshake error print intuitive.
this makes error messages are matched with tls error codes directly.
Change-Id: Iafdc99ffa588318008d63078f0517af7bf241145
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Mon, 17 Jul 2017 12:39:39 +0000 (05:39 -0700)]
apps/webserver: misc change on callbacks
update websocket callbacks in webserver with the recent one.
Change-Id: I106dd779e45232f2a75f562adb23bec7f51b054c
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Mon, 17 Jul 2017 10:40:11 +0000 (03:40 -0700)]
netutil/webserver,websocket: wrong initializing
websocket_find_table() set the state to WEBSOCKET_RUN_SERVER, but
webserver cleans the structure after websocket_find_table().
Change-Id: I6c59d18159860afb066ce7a99e99bb77b9e0bb57
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:04:48 +0000 (06:04 -0700)]
sidk_s5jt200/hello defconfig: enable CONFIG_NOPRINTF_FIELDWIDTH and
CONFIG_NOPRINTF_LONGLONG_TO_ASCII
This feature reduce hello config size up to 14KB.
Change-Id: Iacceb6d265d7aa2b70c4551b5ce7d6d230fb6e24
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:20:23 +0000 (06:20 -0700)]
libc: netdb: Fix bugs in lib_gethostbynamer.c
This fix sets h_name in struct hostent returned by gethostbyname()
This patch comes from Nuttx community.
Commit id:
6ccc01ad
Change-Id: I8a92e862081e62ec2fa09c378eb86bb7c5736182
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:03:04 +0000 (06:03 -0700)]
libc: introduce NOPRINTF_LONGLONG_TO_ASCII
This patch introduces NOPRINTF_LONGLONG_TO_ASCII config.
If you don't need to support long long type in printf, enable
this feature.
Change-Id: If01bf473292eec5525645cfff2c79d1c48297e1f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Thu, 13 Jul 2017 02:20:03 +0000 (11:20 +0900)]
netutils/libcoap : introduce CoAP over DTLS support
This commit is to introduce CoAP over DTLS support
Known issues on libcoap-server example :
- CoAP over DTLS supports NON message only
- CoAP over DTLS supports only one transaction so, server should restart
after a data transaction
Change-Id: Iec0fd57e3d2366a3af3bf88553b1ff6a13bb4df8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Fri, 14 Jul 2017 09:02:41 +0000 (02:02 -0700)]
sidk_s5jt200/hello defconfig: remove unnecessary config for hello app.
This patch removes unnecessary configs for hello app.
After applying this patch, binary size reduced to 17KB from 31KB.
Change-Id: I9262989cc1025e2324f56eae553fb1a51a7510fb
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 09:01:11 +0000 (02:01 -0700)]
Build: change CONFIG_NSOCKET_DESCRIPTORS to CONFIG_NET in Makefile
ifeq ($(CONFIG_NSOCKET_DESCRIPTORS), xx) does not work properly because
CONFIG_NSOCKET_DESCRIPTORS is defined automatically to zero when CONFIG_NET
is disable. So this should be changed to compare with CONFIG_NET.
Change-Id: I4d8acec4a71f01d6065b001b5a154c018891d671
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 08:40:24 +0000 (01:40 -0700)]
fs: driver: Make configurable BCH driver
BCH driver is always compiled. This patch makes BCH driver is
configurable.
Change-Id: I918e90d154f7fe2d361b2cd3d74915291b8ea449
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Thu, 13 Jul 2017 14:00:36 +0000 (23:00 +0900)]
netutils/webserver: Add config parameter for setting client handler.
This commit addes Webserver's CLIENT_HANDLER number in Kconfig.
Because of this commit, it is more easy to set client handler number.
Change-Id: I785805865b3fb1e1e9673c7376a73c4f58ddee20
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Jul 2017 13:17:07 +0000 (22:17 +0900)]
kernel/sched: remove maximum boundary check for pid
This commit fixes maximum boundary checking in sched_gettcb().
If thread or task was created over 32767, g_lastpid value returns
to lower value and it makes wrong comparision in sched_gettcb().
For example)
System thread (pid = 32767) was already created and user creates
one more thread, then user's pid will be allocated lower than system's
thread (1 or above). In this case, not that g_lastpid is same with
user's pid, system's pid can not fit below condition.
(pid > 0 && pid <= g_lastpid)
Change-Id: I9a6d164dd5d7b49e7920e1f597015bd8211b1297
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Mon, 10 Jul 2017 08:29:55 +0000 (17:29 +0900)]
examples/libcoap : increase pthread stack size to support security
This commit is to increase pthread stack size to support security
- to support security through mbedTLS libarary,
pthread stack size should be (16 * 1024) at least
Change-Id: Ic01b803dcb0b4bf3d6e4a0c2e8f3b6e5546ab434
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Mon, 10 Jul 2017 02:37:59 +0000 (11:37 +0900)]
netutils/libcoap : fixes, including path of libcoap headers
This commit is to fix including header path
- header including path is fixed to absoulte path
to give same experiences to developers as other netutil libraries
Change-Id: Idf5aa0c5e4684e9d206f8018e4532949eb410ed1
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
bossjisu [Fri, 7 Jul 2017 10:51:53 +0000 (03:51 -0700)]
netutils/websocket: add websocket state
add state to let application know websocket_handler is stopped for error.
Change-Id: I6d21fe8f68e6947fbf2000253ad767ccb04a330c
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Thu, 6 Jul 2017 09:21:39 +0000 (02:21 -0700)]
netutils/websocket: separate state
running state is splitted to run_client state and run_server state.
it's because mbed_tls function varies between client and server.
TLS code will be separated with websocket code in next update.
Change-Id: I0a7c2cff335a6b92e18cb0d1b52c1f28d4811f16
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 17:44:48 +0000 (10:44 -0700)]
netutils/websocket: multi client is not supported
Change-Id: I9eef55cb8ad93581f87c3ccaa6444340048ae526
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 13:58:08 +0000 (06:58 -0700)]
netutils/websocket: Use defined free and close
Use defines to close the socket and free the memory.
misc changes to organize codes
Change-Id: I826e3aff984883e614e6666de8e9c602d1ff798d
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 13:34:25 +0000 (06:34 -0700)]
netutils/websocket: misc changes in handling loop
websocket state is supposed to be changed at the last.
Otherwise, it can happen memory leaks.
Change-Id: I32d82a77dae1c17406c485a21f9b7d098da8a89e
Signed-off-by: bossjisu <jisuu.kim@samsung.com>