]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commit
zoneconf.cgi: Avoid unnecessary MAC address changes
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Wed, 24 Mar 2021 16:47:16 +0000 (17:47 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Mar 2021 09:21:59 +0000 (09:21 +0000)
commita2f77069aa37f93800b10c0071de6bd3bcb3f5b9
tree3b4504a5aa749a5171e4e1c3b9ed582911fbf720
parent92d8c1f73c548c61b0c2a33c76d66c9b917d5122
zoneconf.cgi: Avoid unnecessary MAC address changes

Ensure that a bridge always has a MAC address configured, to prevent
udev/network-hotplug-bridges assigning random addresses at each start.
Cache previously generated MAC addresses so that they are not
regenerated each time the configuration is saved by the user.

Add more comments to existing code.

Fixes: #12583
Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/zoneconf.cgi