aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Goldschmidt2018-11-22 17:06:39 +0100
committerJoe Hershberger2019-01-24 11:35:28 -0600
commitbe09f5bc7c0c3f0d0bc7b88d23dae883bfa4e014 (patch)
tree773581584a5f14249b46b8a3b9087de53d5e0dcd /include
parent6880efdf5aa63ba3d598af68dbbbc2511a1a604f (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/env_flags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/env_flags.h b/include/env_flags.h
index cc2c34f939f..23744e395c8 100644
--- a/include/env_flags.h
+++ b/include/env_flags.h
@@ -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