zephyr/subsys/net/ip
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
..
6lo_private.h net: ip: 6lo (IPHC) uncompression rework 2019-07-25 15:19:28 +03:00
6lo.c net: ip: 6lo: Remove unnecessary net_buf allocation and memmove 2019-07-25 15:19:28 +03:00
6lo.h cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
canbus_socket.c net: l2: 6LoCAN implementation 2019-08-08 13:25:01 +03:00
canbus_socket.h net: can: Add CAN handling to net_context 2019-02-07 18:08:27 +02:00
CMakeLists.txt net: shell: Print info about websocket 2019-10-04 16:38:34 +03:00
connection.c net: conn: Deliver multicast pkt to all interested parties 2019-09-12 17:33:44 +03:00
connection.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
dhcpv4.c net/ip/dhcpv4: Set source IP address in DHCP Request 2019-04-17 10:35:38 -05:00
dhcpv4.h net/dhcpv4: Avoid ifdefs when using net_dhcpv4_init() 2019-04-03 09:32:39 -04:00
icmpv4.c cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
icmpv4.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
icmpv6.c cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
icmpv6.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
ipv4_autoconf_internal.h net/ethernet: Cleanup a bit on the usage of ifdefs 2019-07-10 15:24:32 +03:00
ipv4_autoconf.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
ipv4.c net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
ipv4.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
ipv6_fragment.c net: ipv6: Fix fragmentation 2019-07-23 15:40:27 +03:00
ipv6_mld.c net: mgmt: Send event with info when applicaple 2019-07-01 13:50:08 -07:00
ipv6_nbr.c net: ip: ipv6_nbr: Make LLAO length calculation more universal 2019-08-09 15:11:45 +03:00
ipv6.c net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
ipv6.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
Kconfig net: routing: Hide routing option temporarily 2019-09-23 10:25:11 +03:00
Kconfig.debug doc: fix docs, include, and Kconfig misspellings 2019-02-28 09:32:12 +01:00
Kconfig.ipv4 net: ipv4: Allow UDP packets with broadcast dst address 2019-05-20 14:11:11 +03:00
Kconfig.ipv6 net: bt: Add multi-link support 2019-05-07 11:16:29 +03:00
Kconfig.mgmt tests: net: increase stack size 2019-08-08 13:50:32 -07:00
Kconfig.stack
Kconfig.stats net: ppp: Initial support for point-to-point protocol 2019-07-29 10:24:46 +03:00
nbr.c net: nbr: Set the link address type when saving neighbor data 2019-06-13 19:47:31 +03:00
nbr.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
net_context.c net: offload: When NET_OFFLOAD is enabled bypass some net_tcp functions 2019-09-23 10:36:01 +03:00
net_core.c net: coap: Add internal init function to seed message_id 2019-10-04 21:22:55 +03:00
net_if.c kernel: syscalls: Whitespace fixups 2019-09-12 11:31:50 +08:00
net_mgmt.c net: mgmt: Add info length to event wait API 2019-07-01 13:50:08 -07:00
net_pkt.c net: pkt: Clone cursor position in net_pkt_clone() 2019-09-13 16:30:02 +03:00
net_private.h net: coap: Add internal init function to seed message_id 2019-10-04 21:22:55 +03:00
net_shell.c net: shell: Print info about websocket 2019-10-04 16:38:34 +03:00
net_shell.h
net_stats.c
net_stats.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
net_tc_mapping.h
net_tc.c
packet_socket.c net: sockets: Add socket api to support AF_PACKET 2019-02-07 14:43:30 +02:00
packet_socket.h net: core: Handle packets when packet sockets are enabled 2019-02-07 14:43:30 +02:00
promiscuous.c
route.c net: Added missing do to net_route_info macro 2019-09-17 11:27:19 +02:00
route.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
tcp_internal.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
tcp.c net: tcp: Accept connections only in LISTENING state 2019-09-10 22:57:48 +03:00
trickle.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
udp_internal.h net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
udp.c net/udp: Always drop IPv6 UDP packet if checksum field is 0 2019-05-30 13:02:25 +08:00
utils.c userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00