]> git.proxmox.com Git - mirror_ifupdown2.git/commit
netlink: nlpacket AttributeMACAddress
authorSven Auhagen <Sven.Auhagen@voleatech.de>
Wed, 27 Jun 2018 05:24:21 +0000 (07:24 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 13 Dec 2018 22:42:35 +0000 (14:42 -0800)
commit08862a99f9c69bbf67e67cad44cba6d80d5d02e8
tree92ec00a3ecb39e1771b120fd6562bb07e28470c5
parent84ca91f1651b0ee6123cd2bfe57916d8db8a2f86
netlink: nlpacket AttributeMACAddress

This commits fixes AttributeMACAddress for GREv6.
Error message: info: netlink: link dump failed: Length of MACAddress attribute not supported: 20
Reproducible by adding a GREv6 Tunnel:

auto gre1
iface gre1 inet tunnel
    mode ip6gre
    local 2001:1000:1000:1000::123
    endpoint 2001:1000:1000:2000::123
    address 192.168.123.1/29

In netlink The IFLA_ADDRESS and IFLA_BROADCAST attributes for all interfaces has been a
6-byte MAC address. But the GRE interface uses a 4-byte IP address and GREv6 uses a 16-byte IPv6 address for this
attribute. This patch allows for decoding a 16-byte value as an IP address.
ifupdown2/nlmanager/nlpacket.py