From: Stefan Agner Date: Wed, 13 Apr 2016 23:38:01 +0000 (-0700) Subject: net: fix vlan validation X-Git-Tag: v2016.05~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0299cee53014f12a60c5b7d317eb2e6ea97c530d;p=u-boot net: fix vlan validation VLAN identifiers are 12-bit decimal numbers, not IP addresses. Signed-off-by: Stefan Agner Reviewed-by: Tom Rini Acked-by: Joe Hershberger --- diff --git a/include/env_flags.h b/include/env_flags.h index 9e87e1b7db..0dcec0689b 100644 --- a/include/env_flags.h +++ b/include/env_flags.h @@ -57,8 +57,8 @@ enum env_flags_varaccess { "gatewayip:i," \ "netmask:i," \ "serverip:i," \ - "nvlan:i," \ - "vlan:i," \ + "nvlan:d," \ + "vlan:d," \ "dnsip:i," #else #define ETHADDR_FLAGS