zephyr/include/net
Martin Åberg a6093804a9 net: ip: enforce alignment in struct cmsghdr
The alignment is needed when using CMSG_DATA() to access a uint64_t
when an object of type struct cmsghdr is allocated on the stack.

Also update the ALIGN_H and ALIGN_D macros to better match the
description in RFC 3542:
   "The macros ALIGN_H() and ALIGN_D(), which are implementation
   dependent, round their arguments up to the next even multiple of
   whatever alignment is required for the start of the cmsghdr structure
   and the data, respectively."

This commit makes the following test pass on qemu_leon3:
- net.socket.udp. It previously generated an unaligned data access
exception when a uint64_t value was accessed via CMSG_DATA().

Signed-off-by: Martin Åberg <martin.aberg@gaisler.com>
2020-11-17 11:44:16 +02:00
..
bt.h net: bt: fix C++ link errors 2020-08-17 10:45:03 +03:00
buf.h net: buf: change avail_count variable to atomic type 2020-10-28 18:45:11 +02:00
can.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
coap_link_format.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
coap.h net: includes: Fix indentation in header files 2020-08-21 13:56:13 -04:00
dhcpv4.h net: Move include files outside of extern "C" block 2019-08-06 14:46:36 +03:00
dns_resolve.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dns_sd.h net: dns: dns-sd: support dns service discovery 2020-11-09 16:15:02 -08:00
dummy.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ethernet_mgmt.h net: includes: Fix indentation in header files 2020-08-21 13:56:13 -04:00
ethernet_vlan.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ethernet.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
gptp.h net: gptp: Allow user to tweak priority1 and priority2 values 2020-09-22 16:45:45 -05:00
hostname.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
http_client.h net: http_client: add missing kernel.h include statement 2020-07-07 16:00:42 -04:00
http_parser_state.h
http_parser_url.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
http_parser.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ieee802154_mgmt.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ieee802154_radio.h drivers: ieee802154: cc13xx_cc26xx: sub-ghz support 2020-11-09 10:25:24 +02:00
ieee802154.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ipv4_autoconf.h
lldp.h net: includes: Fix indentation in header files 2020-08-21 13:56:13 -04:00
lwm2m_path.h net: lwm2m: Add path generation macro 2020-11-10 14:10:44 +02:00
lwm2m.h net: lwm2m: Add path generation macro 2020-11-10 14:10:44 +02:00
mii.h
mqtt.h doc: update Kconfig options to use @option ALIAS 2020-09-15 15:25:01 +02:00
net_config.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
net_conn_mgr.h
net_context.h net: context: add net_context api to check if a port is bound 2020-11-09 16:15:02 -08:00
net_core.h net: Collect net_pkt RX detailed timing stats when passing IP stack 2020-08-07 10:12:51 +03:00
net_event.h net: event: Add start/bound/stop events for DHCPv4 2020-10-03 17:15:15 +03:00
net_if.h net: tc: Remove not used field from net_traffic_class struct 2020-10-02 13:20:17 +03:00
net_ip.h net: ip: enforce alignment in struct cmsghdr 2020-11-17 11:44:16 +02:00
net_l2.h net: Use section foreach macros 2020-07-20 08:32:46 -07:00
net_linkaddr.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
net_mgmt.h net: mgmt: Clarify the net_mgmt API documentation 2020-09-30 16:31:38 +03:00
net_offload.h net: offload: fix k_timeout_t translation in net_offload 2020-10-28 09:30:53 +02:00
net_pkt.h net: pkt: Add net_pkt_is_empty() util function 2020-09-22 11:22:43 +02:00
net_stats.h net: stats: Separate dropped TCP data segments and TCP packets 2020-11-06 09:50:02 -06:00
net_timeout.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
openthread.h openthread: add openthread_api_mutex_try_lock() 2020-10-20 16:39:22 +03:00
ppp.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
promiscuous.h net: promisc: Refactor because of timeout overhaul 2020-04-09 16:07:03 +03:00
ptp_time.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sntp.h net: sntp: Remove deprecated API function 2020-10-01 07:14:08 -05:00
socket_can.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
socket_net_mgmt.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
socket_offload.h net: sockets: Remove socket offloading interface 2020-01-31 11:36:02 -05:00
socket_select.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
socket.h net: lib: sockets: added ALPN extension option to TLS 2020-10-22 11:35:43 +03:00
socketutils.h include: net: socketutils: Allow to build for CONFIG_POSIX_API 2019-09-12 17:30:29 +03:00
tftp.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tls_credentials.h
trickle.h net: includes: Fix indentation in header files 2020-08-21 13:56:13 -04:00
udp.h
websocket.h net: websocket: Fix conflict flag 2020-10-06 12:02:06 +03:00
wifi_mgmt.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wifi.h