]> git.baikalelectronics.ru Git - uboot.git/commit
net: fix env flags for eth10addr and above
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 22 Nov 2018 16:06:39 +0000 (17:06 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 24 Jan 2019 17:35:28 +0000 (11:35 -0600)
commitbff210c519a0f9e07486b935004594cbfc9fe0a3
tree773581584a5f14249b46b8a3b9087de53d5e0dcd
parenta67e18db0bf59f920847bca43f0104698a2aa929
net: fix env flags for eth10addr and above

With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10
interfaces (0..9) as the number can only have one digit.

On boards with more than 10 interfaces, this leads to the protection
and format checks being absent for eth10addr and above.

Fix this by changing ETHADDR_WILDCARD from "\\d?" to "\\d*" to allow
more than one digit.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/env_flags.h