networkd/dhcp6: allow layer3 devices without MAC
authorJörg Thalheim <joerg@thalheim.io>
Sat, 14 Nov 2020 13:50:39 +0000 (14:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Nov 2020 12:56:48 +0000 (13:56 +0100)
commit1d370b2c182505ff8033fccbebcc56621d305220
tree6f3457cbd20e8453269fd93c85801ddddb0a82a4
parent207194c67f57afde62fc2d49c3ddf4502f02dcd0
networkd/dhcp6: allow layer3 devices without MAC

Devices with multicast but without mac addresses i.e. tun devices
are not getting setuped correctly:

$ ip tuntap add mode tun dev tun0
$ ip addr show tun0
16: tun0: <NO-CARRIER,POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 500
    link/none
$ cat /etc/systemd/network/tun0.network
[Match]
Name = tun0

[Network]
Address=192.168.1.1/32
$ ./systemd-networkd
tun0: DHCP6 CLIENT: Failed to set identifier: Invalid argument
tun0: Failed
src/libsystemd-network/sd-dhcp6-client.c
src/network/networkd-dhcp-common.c