]> git.proxmox.com Git - pve-cluster.git/commit
mac_prefix: do not allow multicast prefixes
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 12 Mar 2019 15:07:40 +0000 (16:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2019 08:17:59 +0000 (09:17 +0100)
commitabc68bf79c2c25e47931d0261ca09e86a1923bd5
tree8993999ba44971b6e86790cebdccca156e044b7c
parent63afd01dcee16dddf7f4a3e72f33b476d31ae51e
mac_prefix: do not allow multicast prefixes

MAC-addresses having the LSB of the first octet set, are considered
multicast-addresses (see [0,1]). LXC (the kernel) does not allow
such a mac-address to be set for a device, thus preventing containers from
starting if a multicast prefix is set (reported in [2] by Alexandre)

This patch introduces 'mac-prefix' (permitting only unicast prefixes) via
register_format and uses it instead of the pattern.

[0] https://lists.linuxcontainers.org/pipermail/lxc-users/2010-August/000783.html
[1] https://en.wikipedia.org/wiki/MAC_address
[2] https://pve.proxmox.com/pipermail/pve-devel/2019-March/035996.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
data/PVE/Cluster.pm