Systemd/src/libsystemd-network
Lennart Poettering fb29cdbef2 tree-wide: make sure our control buffers are properly aligned
We always need to make them unions with a "struct cmsghdr" in them, so
that things properly aligned. Otherwise we might end up at an unaligned
address and the counting goes all wrong, possibly making the kernel
refuse our buffers.

Also, let's make sure we initialize the control buffers to zero when
sending, but leave them uninitialized when reading.

Both the alignment and the initialization thing is mentioned in the
cmsg(3) man page.
2020-05-07 14:39:44 +02:00
..
arp-util.c tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h 2019-07-24 18:23:08 +09:00
arp-util.h arp-util: use net/ethernet.h instead of netinet/if_ether.h 2019-04-13 17:51:59 +09:00
dhcp-client-internal.h network: DHCPv4 client: add support to send arbitary option and data 2019-10-15 00:14:02 +09:00
dhcp-identifier.c libsystemd-network: rename net_get_name() to net_get_name_persistent() 2019-06-17 13:43:18 +02:00
dhcp-identifier.h dhcp6: don't enforce DUID content for sd_dhcp6_client_set_duid() 2018-12-20 13:40:39 +01:00
dhcp-internal.h dhcp: remove struct sd_dhcp_raw_option 2019-11-18 23:37:22 +09:00
dhcp-lease-internal.h sd-network: DHCPv4 Add support to send and receive LPR servers. 2020-04-22 14:48:11 +02:00
dhcp-network.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
dhcp-option.c dhcp: remove struct sd_dhcp_raw_option 2019-11-18 23:37:22 +09:00
dhcp-packet.c dhcp4: make IPServiceType configurable 2019-09-26 11:39:46 +09:00
dhcp-protocol.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
dhcp-server-internal.h sd-network: DHCPv4 Add support to send and receive LPR servers. 2020-04-22 14:48:11 +02:00
dhcp6-internal.h network: DHCPv6 client add support for prefix delegation hint 2019-10-01 23:52:40 +09:00
dhcp6-lease-internal.h dhcp6-client: Store lease timeouts T1 and T1 in client struct 2018-09-19 13:45:18 -06:00
dhcp6-network.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
dhcp6-option.c sd-network: DHCP6 - Use readable error status rather than numeric 2020-04-13 06:06:14 +02:00
dhcp6-protocol.h sd-network: DHCPv6 - Add status codes 2020-04-13 17:40:00 +02:00
icmp6-util.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
icmp6-util.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
lldp-internal.h tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
lldp-neighbor.c sd-lldp: Add support to receive MUD 2020-04-07 17:17:29 +02:00
lldp-neighbor.h sd-lldp: Add support to receive MUD 2020-04-07 17:17:29 +02:00
lldp-network.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
lldp-network.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
meson.build network: DHCPv4 client: add support to send arbitary option and data 2019-10-15 00:14:02 +09:00
ndisc-internal.h tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
ndisc-router.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
ndisc-router.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
network-internal.c network: make Type=ether match based on iftype 2020-03-02 08:52:18 +01:00
network-internal.h network: move NETWORK_DIRS to path-lookup.h 2020-03-27 20:12:45 +01:00
radv-internal.h network: Add support to advertie ipv6 route 2019-09-17 12:09:59 +02:00
sd-dhcp-client.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
sd-dhcp-lease.c Merge pull request #15472 from keszybz/dbus-api-docs 2020-04-23 17:01:11 +02:00
sd-dhcp-server.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
sd-dhcp6-client.c dhcp6: make string argument to sd_dhcp6_client_set_request_mud_url() const 2020-04-24 10:13:33 +02:00
sd-dhcp6-lease.c dhcp: replace strerror() with %m 2019-07-05 02:43:56 +09:00
sd-ipv4acd.c ipv4ll: do not reset conflict counter on restart 2019-12-11 13:26:31 +09:00
sd-ipv4ll.c ipv4ll: do not reset conflict counter on restart 2019-12-11 13:26:31 +09:00
sd-lldp.c util: split out sorting related calls to new sort-util.[ch] 2019-03-13 12:16:43 +01:00
sd-ndisc.c ndisc: make first solicit delayed randomly 2019-09-16 05:37:04 +09:00
sd-radv.c network: radv introduce sd_radv_prefix_get_prefix 2020-03-01 00:16:51 +09:00
test-acd.c ipv4ll: do not reset conflict counter on restart 2019-12-11 13:26:31 +09:00
test-dhcp-client.c dhcp4: make IPServiceType configurable 2019-09-26 11:39:46 +09:00
test-dhcp-option.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
test-dhcp-server.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-dhcp6-client.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
test-ipv4ll-manual.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-ipv4ll.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
test-lldp.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
test-ndisc-ra.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
test-ndisc-rs.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
test-sd-dhcp-lease.c network: Implement DHCP Option 119 (Domain Search List) (#5932) 2017-05-13 10:19:32 -04:00