Commit be09f5bc7c0c3f0d0bc7b88d23dae883bfa4e014

Authored by Simon Goldschmidt
Committed by Joe Hershberger
1 parent 6880efdf5a

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -38,7 +38,7 @@
38 38  
39 39 #ifdef CONFIG_CMD_NET
40 40 #ifdef CONFIG_REGEX
41   -#define ETHADDR_WILDCARD "\\d?"
  41 +#define ETHADDR_WILDCARD "\\d*"
42 42 #else
43 43 #define ETHADDR_WILDCARD
44 44 #endif