zephyr/subsys/net/lib
Taehwa Kang 2bdc5923ad net: coap: Fix Coap coap_option_value_to_int and coap_append_option_int
In coap_option_value_to_int function, when coap option length is 4,
option->value[3] should be shifted by 0 rather than option->value[2].
This doesn't affect the behavior of function but needs to be fixed.

In coap_append_option_int function, when the value is between 0xffff
and 0xffffff(when option length is 3), bit shift operation is wrong.
For example, if the value is 0xABCDEF, by sys_put_be16(val, data)
data[0]=0xCD, data[1]=0xEF, by val >> 16, data[2]=0xAB. So the result
becomes 0xCDEFAB not 0xABCDEF. So, to sys_put_be16 function hand
&data[1] over instead of handing data over and val >> 16 needs to be
set to data[0], not data[2].

Signed-off-by: Taehwa Kang <hegrecomm@gmail.com>
2018-09-28 11:11:17 +03:00
..
app coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
coap net: coap: Fix Coap coap_option_value_to_int and coap_append_option_int 2018-09-28 11:11:17 +03:00
config net: config: Use sizeof() to get size of buffer for net_addr_ntop() 2018-09-11 10:42:51 +03:00
dns net: mdns: Wrong net_buf pool was used 2018-09-19 09:55:44 +03:00
http coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
lwm2m coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
mqtt coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
openthread shell: Rename shell to legacy_shell 2018-09-19 09:30:29 -04:00
sntp coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
sockets net: tls: Fix mbedtls hostname erros when certificates are not used 2018-09-17 09:48:11 +03:00
tls_credentials coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
websocket coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
CMakeLists.txt
Kconfig