zephyr/tests/net
Flavio Santes 057f31e7e9 net/mqtt: Remove length computations for some msg fields
Currently, for the following MQTT msg fields:

- client_id
- will_topic
- user_name
- topic

their length is computed inside the routine that receives the MQTT msg.

Although this simplifies development, also imposes one restriction:
data must be null-terminated. Sometimes, data is received from other
sources and not generated by the application, so the null-terminated
constraint may be considered problematic for the user.

This patch removes the assumption that string fields are null-terminated.
Current data structures are already prepared to handle this case, so no
API change is required.

Change-Id: I5a147a5b21e0da49541cbe62baac363c8737cd3e
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2017-02-15 12:20:08 +02:00
..
6lo net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
arp net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
buf license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
context net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
dhcpv4 net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
icmpv6 license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ieee802154 net: tests: Unref net_buf using net_nbuf_unref 2017-02-09 12:29:29 +02:00
iface net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
ip-addr net: tests: Use lighter printk() instead of printf() 2017-01-27 12:35:51 +02:00
ipv6 net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
lib net/mqtt: Remove length computations for some msg fields 2017-02-15 12:20:08 +02:00
mgmt license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
nbuf net: nbuf: Fix net_nbuf_compact() API 2017-02-08 10:12:36 +02:00
neighbor license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
route net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
rpl net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
tcp net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
trickle license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
udp net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
utils net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00