diff options
author | Stefan Agner <stefan@agner.ch> | 2016-04-13 23:38:01 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-05-03 22:52:11 (GMT) |
commit | 0299cee53014f12a60c5b7d317eb2e6ea97c530d (patch) | |
tree | fcbd7cf9374ca28f4efc2273b62670fdc8b8eb2c | |
parent | 31a48cf4e158160e0482415457ef0f69f079368d (diff) | |
download | u-boot-0299cee53014f12a60c5b7d317eb2e6ea97c530d.tar.xz |
net: fix vlan validation
VLAN identifiers are 12-bit decimal numbers, not IP addresses.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r-- | include/env_flags.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/env_flags.h b/include/env_flags.h index 9e87e1b..0dcec06 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 |