luci-base: validation: disallow mutlicast MACs by default
authorJo-Philipp Wich <jo@mein.io>
Sat, 3 Jul 2021 18:10:22 +0000 (20:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 7 Jul 2021 15:17:02 +0000 (17:17 +0200)
commit1fed9af22c41e7a157c79bd6e2b8f4b07320eaee
treee54abc289e921f1fb3453510fd5da8ff54140230
parentd9430378f92a378b66f7e5f26bb82d7ccfd49230
luci-base: validation: disallow mutlicast MACs by default

Extend the MAC address validator to disallow multicast MAC addresses and
add a new optional validator option to require multicast MACs instead of
unicast ones.

Fixes: #5166
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 00e41c3c4977f75e6ca43429dd4c8c2f5cb22419)
modules/luci-base/htdocs/luci-static/resources/validation.js