zephyr/samples/net
Robert Lubos b9caaf217e net: lwm2m: Fix Security and Server object instance matching
A proper way to match a Security object instance with a Server object
instance is via Short Server ID resource. Both coupled object instances
should carry the same value of this resource in order to me considered
matched.

This was not implemented in the LwM2M library and it was incorrectly
assumed that the Security object instance index corresponds to the
Server object instance index. While such apporach works is simple
scenario, it might yield incorrect results when bootstrap is used.

Fix this, by verifyng the Short Server ID resource in the Secuirty
instance used, and finding a matching Server instance. The server object
instance is stored for future use in the engine.

Additionally, remove an extra Server object instance that was created
when the bootstrap procedure was used. Since the boostrap Security
object instance does not have the corresponding Server object, it's
enough to have a single Server instance.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-08-04 16:29:40 +02:00
..
cloud random: Include header where it is used 2020-07-08 21:05:36 -04:00
common license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
dhcpv4_client zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dns_resolve zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
eth_native_posix samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
gptp samples/tests: Convert use of %ll{u,d} to PRI{u,d}64 2020-06-08 08:23:57 -05:00
gsm_modem zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ipv4_autoconf zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lldp zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lwm2m_client net: lwm2m: Fix Security and Server object instance matching 2020-08-04 16:29:40 +02:00
mdns_responder samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mqtt_publisher random: Include header where it is used 2020-07-08 21:05:36 -04:00
openthread/ncp samples: openthread: remove redundant configuration options 2020-06-30 07:48:08 -04:00
promiscuous_mode zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets samples: net: socket_echo_select: add support for TI CC32xx 2020-07-27 13:28:06 +02:00
stats samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
syslog_net cmake, samples, tests: Use semi-accurate project names 2020-06-09 08:18:29 -04:00
telnet zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
vlan samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
wifi boards: shields: esp_8266: Add std headers overlay 2020-07-17 11:38:28 +02:00
wpan_serial uart: Fix uart_irq_callback_set usage 2020-07-30 09:43:12 +02:00
wpanusb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
zperf samples: zperf: fix an unaligned access in the UDP uploader 2020-06-15 10:30:35 +03:00
net.rst