Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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> (cherry picked from commit 7d0b26a) (cherry picked from commit f116178)
- Loading branch information