Systemd/src/network
Jason A. Donenfeld 7d0b26a027 networkd: fix attribute length for wireguard (#10380)
This is actually a u16, not a u32, so the kernel complains:

kernel: netlink: 'systemd-network': attribute type 5 has an invalid length

This is due to:

if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) {
        pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n",
                            current->comm, type);
}

Presumably this has been working fine in functionality on little-endian
systems, but nobody bothered to try on big-endian systems.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-13 17:28:49 +09:00
..
netdev networkd: fix attribute length for wireguard (#10380) 2018-10-13 17:28:49 +09:00
wait-online network: replace udev_device by sd_device 2018-08-23 04:57:39 +09:00
meson.build networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
networkctl.c tree-wide: do not assign unused return values 2018-09-23 17:18:50 +09:00
networkd-address-label.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-address-label.h networkd: drop unused element from AddressLabel struct 2018-10-10 14:43:05 +09:00
networkd-address-pool.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
networkd-address-pool.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
networkd-address.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-address.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
networkd-brvlan.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-brvlan.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
networkd-conf.c network: accept additional time-value after ':' when DUIDType=link-layer-time 2018-08-08 10:15:00 +09:00
networkd-conf.h tree-wide: beautify remaining copyright statements 2018-06-14 10:20:21 +02:00
networkd-dhcp4.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-dhcp6.c network: make netlink callbacks return 1 2018-10-10 14:43:05 +09:00
networkd-fdb.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-fdb.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
networkd-gperf.gperf network: accept additional time-value after ':' when DUIDType=link-layer-time 2018-08-08 10:15:00 +09:00
networkd-ipv4ll.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-ipv6-proxy-ndp.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-ipv6-proxy-ndp.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
networkd-link-bus.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
networkd-link.c network: make netlink callbacks return 1 2018-10-10 14:43:05 +09:00
networkd-link.h network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-lldp-tx.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
networkd-lldp-tx.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
networkd-manager-bus.c network: replace udev_device by sd_device 2018-08-23 04:57:39 +09:00
networkd-manager.c network: make netlink callbacks return 1 2018-10-10 14:43:05 +09:00
networkd-manager.h network: make manager_dhcp6_prefix_remove() static 2018-10-10 14:43:05 +09:00
networkd-ndisc.c network: rename ndisc_netlink_handler() to ndisc_route_handler() 2018-10-10 14:43:05 +09:00
networkd-ndisc.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
networkd-network-bus.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
networkd-network-gperf.gperf network: fix alignment 2018-09-27 17:48:34 +09:00
networkd-network.c network: fix memleak around Network.dhcp_vendor_class_identifier 2018-09-27 17:48:34 +09:00
networkd-network.h networkd-network: Introduce DHCPv6 PD knob for RFC 7084 WPD-4 2018-09-19 13:45:17 -06:00
networkd-radv.c network: replace udev_device by sd_device 2018-08-23 04:57:39 +09:00
networkd-radv.h tree-wide: beautify remaining copyright statements 2018-06-14 10:20:21 +02:00
networkd-route.c network: drop route_expire_callback() as it is duplicate of link_route_remove_handler() 2018-10-10 14:43:05 +09:00
networkd-route.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
networkd-routing-policy-rule.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
networkd-routing-policy-rule.h network: strdup iif and oif when creating RoutingPolicyRule object 2018-09-27 17:48:34 +09:00
networkd-util.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
networkd-util.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
networkd.c network: replace udev_device by sd_device 2018-08-23 04:57:39 +09:00
networkd.conf network: provide default networkd.conf 2018-06-26 03:34:49 +09:00
org.freedesktop.network1.conf networkd: add basic dbus API 2015-02-05 11:50:34 +01:00
org.freedesktop.network1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
systemd-networkd.pkla network: request product UUID when DUIDType=uuid but DUIDRawData= is not set 2018-08-08 10:15:00 +09:00
systemd-networkd.rules network: request product UUID when DUIDType=uuid but DUIDRawData= is not set 2018-08-08 10:15:00 +09:00
test-network-tables.c test-network-tables: add dhcp6_message_type to test 2018-07-24 12:59:52 +02:00
test-network.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-networkd-conf.c network: accept additional time-value after ':' when DUIDType=link-layer-time 2018-08-08 10:15:00 +09:00
test-routing-policy-rule.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00