summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-20 19:27:24 (GMT)
committerTom Rini <trini@konsulko.com>2015-05-21 13:13:20 (GMT)
commitc0a93440a7cb50843510549d9943a4fba211f0f2 (patch)
tree76aeb03c001cf472e412dfe6d00a8e72b06eda4c
parentfd3056337e6fcc140f400e11edd33f6f1cb37de1 (diff)
downloadu-boot-fsl-qoriq-c0a93440a7cb50843510549d9943a4fba211f0f2.tar.xz
net: Add default flags for common net env vars
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/env_flags.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/env_flags.h b/include/env_flags.h
index fc6d0d8..2d2de88 100644
--- a/include/env_flags.h
+++ b/include/env_flags.h
@@ -52,8 +52,17 @@ enum env_flags_varaccess {
#define ETHADDR_FLAGS "eth" ETHADDR_WILDCARD "addr:mo,"
#endif
#endif
+#define NET_FLAGS \
+ "ipaddr:i," \
+ "gatewayip:i," \
+ "netmask:i," \
+ "serverip:i," \
+ "nvlan:i," \
+ "vlan:i," \
+ "dnsip:i,"
#else
-#define ETHADDR_FLAGS ""
+#define ETHADDR_FLAGS
+#define NET_FLAGS
#endif
#ifndef CONFIG_ENV_OVERWRITE
@@ -64,6 +73,7 @@ enum env_flags_varaccess {
#define ENV_FLAGS_LIST_STATIC \
ETHADDR_FLAGS \
+ NET_FLAGS \
SERIAL_FLAGS \
CONFIG_ENV_FLAGS_LIST_STATIC