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
buf.h net: buf: change avail_count variable to atomic type 2020-10-28 18:45:11 +02:00
can.h
coap_link_format.h
coap.h
dhcpv4.h
dns_resolve.h
dns_sd.h net: dns: dns-sd: support dns service discovery 2020-11-09 16:15:02 -08:00
dummy.h
ethernet_mgmt.h
ethernet_vlan.h
ethernet.h
gptp.h
hostname.h
http_client.h
http_parser_state.h
http_parser_url.h
http_parser.h
ieee802154_mgmt.h
ieee802154_radio.h drivers: ieee802154: cc13xx_cc26xx: sub-ghz support 2020-11-09 10:25:24 +02:00
ieee802154.h
ipv4_autoconf.h
lldp.h
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
net_config.h
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_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_linkaddr.h
net_mgmt.h
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_stats.h net: stats: Separate dropped TCP data segments and TCP packets 2020-11-06 09:50:02 -06:00
net_timeout.h
openthread.h openthread: add openthread_api_mutex_try_lock() 2020-10-20 16:39:22 +03:00
ppp.h
promiscuous.h
ptp_time.h
sntp.h
socket_can.h
socket_net_mgmt.h
socket_offload.h
socket_select.h
socket.h net: lib: sockets: added ALPN extension option to TLS 2020-10-22 11:35:43 +03:00
socketutils.h
tftp.h
tls_credentials.h
trickle.h
udp.h
websocket.h net: websocket: Fix conflict flag 2020-10-06 12:02:06 +03:00
wifi_mgmt.h
wifi.h