zephyr/subsys/net
Benjamin Lindqvist 81ccbd96c9 net: coap: Add internal init function to seed message_id
Randomly generating ID the first time coap_next_id() is called is more
in accordance with CoAP recommendations (see
https://tools.ietf.org/html/draft-ietf-core-coap-18, section 4.4)

"It is strongly recommended that the initial value of the
variable (e.g., on startup) be randomized, in order to make successful
off-path attacks on the protocol less likely."

Doing this in a dedicated init function is the cleanest and most
idiomatic approach. This init function is not exposed publically which
means it will be called only once, by the network stack init procedure.

Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
2019-10-04 21:22:55 +03:00
..
ip net: coap: Add internal init function to seed message_id 2019-10-04 21:22:55 +03:00
l2 coccinelle: standardize kernel API timeout arguments 2019-10-03 11:55:44 -07:00
lib net: coap: Add internal init function to seed message_id 2019-10-04 21:22:55 +03:00
buf.c net: buf: Add net_buf_simple_clone 2019-10-04 20:56:25 +03:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c
Kconfig Bluetooth: Add possibility to pass a user_data to conn_tx_cb_t 2019-05-29 16:31:03 +03:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net