aboutsummaryrefslogtreecommitdiff
path: root/include/env_flags.h
diff options
context:
space:
mode:
authorStefan Agner2016-04-13 16:38:01 -0700
committerJoe Hershberger2016-05-03 17:52:11 -0500
commit0299cee53014f12a60c5b7d317eb2e6ea97c530d (patch)
treefcbd7cf9374ca28f4efc2273b62670fdc8b8eb2c /include/env_flags.h
parent31a48cf4e158160e0482415457ef0f69f079368d (diff)
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>
Diffstat (limited to 'include/env_flags.h')
-rw-r--r--include/env_flags.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/env_flags.h b/include/env_flags.h
index 9e87e1b7dbf..0dcec0689b1 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