Systemd/src/libsystemd/sd-netlink
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
..
generic-netlink.c networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
local-addresses.c tree-wide: use typesafe_qsort() 2018-09-19 08:02:52 +09:00
local-addresses.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
netlink-internal.h sd-netlink: add destroy_callback argument to sd_netlink_call_async() 2018-10-10 14:43:05 +09:00
netlink-message.c libsystemd: use DEFINE_ATOMIC_REF_UNREF_FUNC or frineds where applicable 2018-08-28 05:09:40 +09:00
netlink-socket.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
netlink-types.c networkd: fix attribute length for wireguard (#10380) 2018-10-13 17:28:49 +09:00
netlink-types.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
netlink-util.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
netlink-util.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
rtnl-message.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
sd-netlink.c sd-netlink: add destroy_callback argument to sd_netlink_call_async() 2018-10-10 14:43:05 +09:00
test-local-addresses.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-netlink.c test: add tests for destroy callback of asynchronous netlink call 2018-10-10 14:43:05 +09:00