]> git.sur5r.net Git - u-boot/commitdiff
net: fix vlan validation
authorStefan Agner <stefan@agner.ch>
Wed, 13 Apr 2016 23:38:01 +0000 (16:38 -0700)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 3 May 2016 22:52:11 +0000 (17:52 -0500)
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>
include/env_flags.h

index 9e87e1b7dbf3e13310ed0dee8c3395628669d782..0dcec0689b19a1701360d44a7977d9075db389a9 100644 (file)
@@ -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