Systemd/src/network/netdev
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
..
bond.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
bond.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
bridge.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
bridge.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
dummy.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
dummy.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
fou-tunnel.c network: drop an unused variable 2018-09-03 14:08:30 +02:00
fou-tunnel.h networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
geneve.c network: add destroy callbacks for asynchronous netlink calls 2018-10-10 14:43:05 +09:00
geneve.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
ipvlan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
ipvlan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
macvlan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
macvlan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
netdev-gperf.gperf networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
netdev.c network: make netdev_enslave() static 2018-10-10 14:43:05 +09:00
netdev.h network: make netdev_enslave() static 2018-10-10 14:43:05 +09:00
netdevsim.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
netdevsim.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
tunnel.c networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
tunnel.h networkd and sd-netlink: add support for Generic netlink And FooOverUDP to IPIP tunnel 2018-08-23 11:30:37 +02:00
tuntap.c user-util: rework get_user_creds() 2018-08-20 15:58:21 +02:00
tuntap.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
vcan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
vcan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
veth.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
veth.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
vlan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
vlan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
vrf.c Drop some more copyright headers 2018-07-24 11:16:01 +02:00
vrf.h Drop some more copyright headers 2018-07-24 11:16:01 +02:00
vxcan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
vxcan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
vxlan.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
vxlan.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
wireguard.c networkd: fix attribute length for wireguard (#10380) 2018-10-13 17:28:49 +09:00
wireguard.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00