1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/net
Martine S. Lenders 89afc378a9 emcute: fix length field calculation
The length field in an MQTT packet carries the _total_ length of the
packet. If it is below 256 (i.e. fits in one byte) only one byte is
used for the length field. If it is larger than that 3 bytes are used,
with the first byte having the value `0x01` and the remaining bytes
representing the length in as a 2 byte unsigned integer in network byte
order. Resulting from that it can be assessed that the check in
`emcutes`'s `set_len()` function is wrong as it needs to be checked if
`len` is lesser or equal to `0xff - 1`. `len <= (0xff - 1)` can be
simplified to `len < 0xff`. For some larger packages this safes 2 bytes
of wasted packet space.
2019-08-05 13:08:20 +02:00
..
application_layer emcute: fix length field calculation 2019-08-05 13:08:20 +02:00
ble sys/bluetil: add bluetil_addr_from_str() 2019-06-06 11:42:55 +02:00
credman sys/net: add credman (D)TLS credential manager 2019-07-19 13:56:21 +02:00
crosslayer drivers/sx127x: add NETOPT_RX_SYMBOL_TIMEOUT setter 2019-06-27 15:43:50 +02:00
gnrc Merge pull request #11916 from miri64/gnrc_icmpv6_echo/enh/use-netif_hdr-setter 2019-07-30 19:48:43 +02:00
link_layer l2util: initial import 2019-03-26 21:37:20 +01:00
netdev_test sys/net: iolist updates 2018-03-06 14:00:32 +01:00
network_layer ipv6_ext: remove empty, unused module 2018-10-25 11:12:14 +02:00
routing sys: add missig <string.h> includes 2018-09-20 23:47:40 +02:00
sock sys/net/sock_util: Accept null pointers in urlsplit 2019-06-12 10:03:11 +02:00
transport_layer sys: fix doxygen grouping 2018-06-11 19:12:02 +02:00
doc.txt doc: add net to sys group 2015-08-30 14:00:33 +02:00