From: Stefan Agner <stefan@agner.ch>
Date: Wed, 13 Apr 2016 23:38:01 +0000 (-0700)
Subject: net: fix vlan validation
X-Git-Tag: v2025.01-rc5-pxa1908~9500
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=0299cee53014f12a60c5b7d317eb2e6ea97c530d;p=u-boot.git

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>
---

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