mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-26 20:53:23 +08:00
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>
This commit is contained in:
parent
6880efdf5a
commit
be09f5bc7c
@ -38,7 +38,7 @@ enum env_flags_varaccess {
|
||||
|
||||
#ifdef CONFIG_CMD_NET
|
||||
#ifdef CONFIG_REGEX
|
||||
#define ETHADDR_WILDCARD "\\d?"
|
||||
#define ETHADDR_WILDCARD "\\d*"
|
||||
#else
|
||||
#define ETHADDR_WILDCARD
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user