[U-Boot] [PATCH] net: fix env flags for eth10addr and above

Joe Hershberger joe.hershberger at ni.com
Tue Jan 15 08:58:54 UTC 2019


On Thu, Nov 22, 2018 at 10:06 AM Simon Goldschmidt
<simon.k.r.goldschmidt at gmail.com> wrote:
>
> 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 at gmail.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list